Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008196/0.0008197, allocations: 96.31 kB / 17.35 MB, free: 6.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009345/0.0009344, allocations: 203.7 kB / 18.28 MB, free: 5.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.194/1.194, allocations: 227.7 MB / 246.8 MB, free: 11.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002088/0.0002088, allocations: 8 kB / 307.8 MB, free: 0.6992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08548/0.08571, allocations: 51.52 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.1769/0.2626, allocations: 33.52 MB / 392.9 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.017/0.2797, allocations: 7.767 MB / 400.7 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005687/0.2854, allocations: 144.8 kB / 400.8 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.2865, allocations: 388.8 kB / 401.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003649/0.2902, allocations: 1.511 MB / 402.7 MB, free: 11.6 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001434/0.2916, allocations: 0.6366 MB / 403.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005182/0.2968, allocations: 4.788 MB / 408.1 MB, free: 8.816 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004262/0.3011, allocations: 3.723 MB / 411.8 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001178/0.3023, allocations: 0.9452 MB / 412.8 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001729/0.304, allocations: 1.666 MB / 414.4 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002421/0.3043, allocations: 124 kB / 414.6 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001632/0.3059, allocations: 1.041 MB / 415.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001008/0.3069, allocations: 1.429 MB / 417 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001199/0.3081, allocations: 1.694 MB / 418.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004207/0.3124, allocations: 5.483 MB / 424.2 MB, free: 9.875 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.3124, allocations: 4 kB / 424.2 MB, free: 9.871 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3124, allocations: 0 / 424.2 MB, free: 9.871 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.056e-05/0.3124, allocations: 4 kB / 424.2 MB, free: 9.867 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.004948/0.3174, allocations: 3.365 MB / 427.6 MB, free: 6.438 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.3174, allocations: 8.031 kB / 427.6 MB, free: 6.43 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006204/0.3181, allocations: 0.6413 MB / 428.2 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006041/0.3241, allocations: 1.911 MB / 430.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002875/0.327, allocations: 2.073 MB / 432.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.3271, allocations: 213.2 kB / 432.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004298/0.3276, allocations: 271.8 kB / 432.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01429/0.3419, allocations: 10.04 MB / 442.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.46e-05/0.342, allocations: 35.69 kB / 442.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000309/0.3423, allocations: 139.9 kB / 442.9 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002746/0.345, allocations: 1.844 MB / 444.7 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0151/0.3602, allocations: 8.595 MB / 453.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0351/0.3953, allocations: 36.84 MB / 490.2 MB, free: 6.039 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008965/0.4043, allocations: 3.92 MB / 494.1 MB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002096/0.4064, allocations: 1.806 MB / 495.9 MB, free: 104 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009286/0.4157, allocations: 7.622 MB / 0.4917 GB, free: 8.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.4157, allocations: 47.56 kB / 0.4918 GB, free: 8.125 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 4.208e-06/0.4158, allocations: 0 / 0.4918 GB, free: 8.125 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.04858/0.4643, allocations: 17.56 MB / 0.5089 GB, free: 6.441 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/0.4644, allocations: 149.5 kB / 0.5091 GB, free: 6.266 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004778/0.4692, allocations: 3.469 MB / 0.5124 GB, free: 2.793 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001177/0.4693, allocations: 49.7 kB / 0.5125 GB, free: 2.738 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00191/0.4713, allocations: 2.736 MB / 0.5152 GB, free: 15.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006391/0.4719, allocations: 0.6364 MB / 0.5158 GB, free: 15.32 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006473/0.4726, allocations: 474.2 kB / 0.5162 GB, free: 14.85 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.4727, allocations: 301.1 kB / 0.5165 GB, free: 14.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003098/0.4758, allocations: 1.971 MB / 0.5185 GB, free: 12.58 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005095/0.4809, allocations: 5.381 MB / 0.5237 GB, free: 5.48 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1833/0.6642, allocations: 7.95 MB / 0.5315 GB, free: 138.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001304/0.6644, allocations: 36.75 kB / 0.5315 GB, free: 138.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01791/0.6823, allocations: 8.179 MB / 0.5395 GB, free: 136.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001254/0.6824, allocations: 62.66 kB / 0.5396 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002866/0.6827, allocations: 124.7 kB / 0.5397 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004379/0.6871, allocations: 1.298 MB / 0.5409 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004286/0.6914, allocations: 1.268 MB / 0.5422 GB, free: 136.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008539/0.7, allocations: 6.105 MB / 0.5481 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003686/0.7037, allocations: 308.8 kB / 0.5484 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007358/0.7044, allocations: 341.9 kB / 0.5488 GB, free: 133.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (681): * Single equations (assignments): 677 * Array equations: 3 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003204/0.7076, allocations: 1.809 MB / 0.5505 GB, free: 132.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000829/0.7085, allocations: 304.5 kB / 0.5508 GB, free: 132.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007027/0.7155, allocations: 3.4 MB / 0.5541 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-05/0.7156, allocations: 19.94 kB / 0.5542 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.328e-05/0.7156, allocations: 4.375 kB / 0.5542 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.7156, allocations: 11.48 kB / 0.5542 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.014/0.7296, allocations: 7.628 MB / 0.5616 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.7297, allocations: 0.9375 kB / 0.5616 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/0.7307, allocations: 246.4 kB / 0.5619 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003321/0.7341, allocations: 1.122 MB / 0.563 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001462/0.7342, allocations: 29.33 kB / 0.563 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00665/0.7409, allocations: 5.734 MB / 0.5686 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.7409, allocations: 0 / 0.5686 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008354/0.7493, allocations: 5.764 MB / 0.5742 GB, free: 115.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007738/0.7501, allocations: 357 kB / 0.5745 GB, free: 115.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006285/0.7507, allocations: 27.92 kB / 0.5746 GB, free: 115.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001542/0.7523, allocations: 100.9 kB / 0.5747 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002452/0.7525, allocations: 90.36 kB / 0.5748 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000111/0.7527, allocations: 47.98 kB / 0.5748 GB, free: 115.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003457/0.7561, allocations: 2.154 MB / 0.5769 GB, free: 112.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7561, allocations: 0 / 0.5769 GB, free: 112.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004299/0.7604, allocations: 0.8881 MB / 0.5778 GB, free: 112 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.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 (129): * Single equations (assignments): 125 * Array equations: 3 * 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 {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008787/0.7692, allocations: 6.408 MB / 0.584 GB, free: 105.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007246/0.7765, allocations: 4.803 MB / 0.5887 GB, free: 100.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.7766, allocations: 0 / 0.5887 GB, free: 100.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002049/0.7786, allocations: 1.554 MB / 0.5902 GB, free: 99.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002782/0.7814, allocations: 339.5 kB / 0.5906 GB, free: 98.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06125/0.8427, allocations: 47.12 MB / 0.6366 GB, free: 45.04 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003246/0.846, allocations: 2.85 MB / 0.6394 GB, free: 42.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003833/0.8498, allocations: 1.711 MB / 0.641 GB, free: 40.44 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001851/0.8517, allocations: 1.581 MB / 0.6426 GB, free: 38.86 MB / 446.1 MB Notification: Performance of SimCode: time 8.42e-07/0.8517, allocations: 4 kB / 0.6426 GB, free: 38.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2604/1.112, allocations: 61.26 MB / 0.7024 GB, free: 149.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/1.112, allocations: 255.9 kB / 0.7027 GB, free: 149.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.985/4.098, allocations: 0 / 0.7027 GB, free: 149.7 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches