Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001055/0.001055, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009663/0.0009663, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8998/0.8998, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.847e-05/1.988e-05, allocations: 3.125 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.003769/0.003789, allocations: 4.133 MB / 328.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001988/0.005777, allocations: 1.364 MB / 330 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004646/0.006241, allocations: 35.69 kB / 330 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003365/0.006578, allocations: 174.2 kB / 330.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003123/0.00689, allocations: 174.2 kB / 330.4 MB, free: 10 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006646/0.007555, allocations: 383.3 kB / 330.7 MB, free: 9.629 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007027/0.008258, allocations: 0.9973 MB / 331.7 MB, free: 8.625 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003482/0.008606, allocations: 267.4 kB / 332 MB, free: 8.344 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000479/0.009085, allocations: 0.5027 MB / 332.5 MB, free: 7.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004531/0.009538, allocations: 227.1 kB / 332.7 MB, free: 7.617 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.223e-05/0.0096, allocations: 75.94 kB / 332.8 MB, free: 7.543 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001621/0.009762, allocations: 123.9 kB / 332.9 MB, free: 7.422 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.006e-05/0.009842, allocations: 175.3 kB / 333.1 MB, free: 7.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001472/0.009989, allocations: 263.2 kB / 333.4 MB, free: 6.992 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007551/0.01074, allocations: 1.101 MB / 334.5 MB, free: 5.887 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.01075, allocations: 0 / 334.5 MB, free: 5.887 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.01075, allocations: 0 / 334.5 MB, free: 5.887 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.01076, allocations: 0 / 334.5 MB, free: 5.887 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.0009887/0.01175, allocations: 1.085 MB / 335.5 MB, free: 4.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.01179, allocations: 15.98 kB / 335.6 MB, free: 4.754 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.807e-05/0.01189, allocations: 119 kB / 335.7 MB, free: 4.629 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.01205, allocations: 123.2 kB / 335.8 MB, free: 4.508 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006452/0.0127, allocations: 0.5551 MB / 336.3 MB, free: 3.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.364e-05/0.01273, allocations: 58 kB / 336.4 MB, free: 3.871 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.24e-05/0.01281, allocations: 83.95 kB / 336.5 MB, free: 3.789 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008162/0.01362, allocations: 0.8481 MB / 337.3 MB, free: 2.832 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.01365, allocations: 11.88 kB / 337.3 MB, free: 2.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.957e-05/0.01369, allocations: 43.94 kB / 337.4 MB, free: 2.777 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.0137, allocations: 20 kB / 337.4 MB, free: 2.758 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005563/0.01426, allocations: 471.3 kB / 337.9 MB, free: 2.293 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002527/0.01678, allocations: 4.159 MB / 342 MB, free: 13.94 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003731/0.01716, allocations: 288.3 kB / 342.3 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.0173, allocations: 137.5 kB / 342.4 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001136/0.01742, allocations: 16.38 kB / 342.5 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.01744, allocations: 34.92 kB / 342.5 MB, free: 13.45 MB / 314.7 MB Notification: Performance of pre-optimization done (n=46): time 3.166e-06/0.01744, allocations: 0 / 342.5 MB, free: 13.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=57): time 0.002103/0.01954, allocations: 1.6 MB / 344.1 MB, free: 11.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.01958, allocations: 59.91 kB / 344.2 MB, free: 11.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003915/0.01997, allocations: 0.5508 MB / 344.7 MB, free: 11.17 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.01999, allocations: 33.7 kB / 344.7 MB, free: 11.13 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002052/0.02019, allocations: 495.7 kB / 345.2 MB, free: 10.64 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.02029, allocations: 214.1 kB / 345.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.02041, allocations: 138.6 kB / 345.6 MB, free: 10.29 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.02052, allocations: 386.7 kB / 345.9 MB, free: 9.902 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.02069, allocations: 161.9 kB / 346.1 MB, free: 9.742 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003016/0.02099, allocations: 463.2 kB / 346.6 MB, free: 9.156 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007937/0.02179, allocations: 0.6644 MB / 347.2 MB, free: 8.359 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.02179, allocations: 0 / 347.2 MB, free: 8.359 MB / 314.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0007291/0.02252, allocations: 0.7477 MB / 348 MB, free: 7.602 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.02254, allocations: 11.94 kB / 348 MB, free: 7.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.02256, allocations: 15.97 kB / 348 MB, free: 7.574 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001379/0.02269, allocations: 48.84 kB / 348 MB, free: 7.523 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003218/0.02301, allocations: 179.7 kB / 348.2 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009381/0.02395, allocations: 1.574 MB / 349.8 MB, free: 5.664 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.02415, allocations: 24 kB / 349.8 MB, free: 5.641 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.751e-05/0.02418, allocations: 40 kB / 349.9 MB, free: 5.602 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002367/0.02441, allocations: 233.5 kB / 350.1 MB, free: 5.363 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.509e-05/0.02447, allocations: 71.53 kB / 350.2 MB, free: 5.293 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.363e-05/0.02454, allocations: 83.06 kB / 350.2 MB, free: 5.211 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.02455, allocations: 7.938 kB / 350.2 MB, free: 5.203 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.02455, allocations: 3.938 kB / 350.2 MB, free: 5.199 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.02456, allocations: 4.062 kB / 350.2 MB, free: 5.195 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001213/0.02577, allocations: 1.273 MB / 351.5 MB, free: 3.836 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.02577, allocations: 8.328 kB / 351.5 MB, free: 3.828 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002595/0.02603, allocations: 115.9 kB / 351.6 MB, free: 3.715 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.068e-05/0.02609, allocations: 24.84 kB / 351.7 MB, free: 3.688 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.02611, allocations: 12 kB / 351.7 MB, free: 3.676 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005653/0.02668, allocations: 1.264 MB / 352.9 MB, free: 2.293 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.02668, allocations: 11.88 kB / 353 MB, free: 2.281 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00089/0.02757, allocations: 0.7731 MB / 353.7 MB, free: 1.453 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.152e-05/0.02763, allocations: 67.7 kB / 353.8 MB, free: 1.387 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.026e-05/0.02766, allocations: 15.94 kB / 353.8 MB, free: 1.371 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.02776, allocations: 19.94 kB / 353.8 MB, free: 1.352 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.662e-05/0.02782, allocations: 43.95 kB / 353.9 MB, free: 1.309 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.02784, allocations: 16 kB / 353.9 MB, free: 1.293 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002507/0.02809, allocations: 367.1 kB / 354.2 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02809, allocations: 0 / 354.2 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004211/0.02851, allocations: 140 kB / 354.4 MB, free: 0.8008 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008451/0.02935, allocations: 1.328 MB / 355.7 MB, free: 15.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006358/0.02999, allocations: 0.5689 MB / 356.3 MB, free: 14.82 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.02999, allocations: 0 / 356.3 MB, free: 14.82 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002408/0.03023, allocations: 307.2 kB / 356.6 MB, free: 14.51 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004073/0.03064, allocations: 98.03 kB / 356.7 MB, free: 14.42 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005167/0.03581, allocations: 5.85 MB / 362.5 MB, free: 8.156 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002614/0.03607, allocations: 378.3 kB / 362.9 MB, free: 7.758 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001995/0.03627, allocations: 82.02 kB / 363 MB, free: 7.676 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002615/0.03653, allocations: 324.4 kB / 363.3 MB, free: 7.359 MB / 330.7 MB Notification: Performance of SimCode: time 1.252e-06/0.03653, allocations: 7.938 kB / 363.3 MB, free: 7.352 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02948/0.06601, allocations: 12.7 MB / 376 MB, free: 10.85 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.342/7.408, allocations: 3.859 kB / 376 MB, free: 10.85 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.088923359289765]