Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001702/0.001702, allocations: 109.5 kB / 17.73 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001876/0.001877, allocations: 192 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.473/1.473, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 55.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1129, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.209/0.322, allocations: 10.31 MB / 385 MB, free: 7.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007591/0.3296, allocations: 3.865 MB / 388.8 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001554/0.3313, allocations: 53.25 kB / 388.9 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003741/0.335, allocations: 2.085 MB / 391 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004461/0.3395, allocations: 1.637 MB / 392.6 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001958/0.3415, allocations: 0.6955 MB / 393.3 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005865/0.3474, allocations: 3.379 MB / 396.7 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003468/0.3508, allocations: 2.705 MB / 399.4 MB, free: 1.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002469/0.3533, allocations: 1.26 MB / 400.6 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002798/0.3561, allocations: 1.776 MB / 402.4 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006835/0.3568, allocations: 262.3 kB / 402.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002378/0.3592, allocations: 1.111 MB / 403.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001563/0.3608, allocations: 1.588 MB / 405.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001837/0.3627, allocations: 1.869 MB / 407.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006903/0.3696, allocations: 5.956 MB / 413.2 MB, free: 8.738 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.3696, allocations: 1.375 kB / 413.2 MB, free: 8.738 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3696, allocations: 0 / 413.2 MB, free: 8.738 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002274/0.3698, allocations: 4 kB / 413.2 MB, free: 8.734 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.0106/0.3805, allocations: 4.149 MB / 417.4 MB, free: 5.004 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.3805, allocations: 16.03 kB / 417.4 MB, free: 4.988 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008957/0.3814, allocations: 0.6413 MB / 418 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006283/0.3877, allocations: 1.86 MB / 419.9 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004109/0.3918, allocations: 2.366 MB / 422.2 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001548/0.392, allocations: 205.2 kB / 422.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004479/0.3925, allocations: 267.8 kB / 422.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01533/0.4078, allocations: 9.985 MB / 432.7 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.197e-05/0.4079, allocations: 39.59 kB / 432.7 MB, free: 4.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003402/0.4083, allocations: 131.9 kB / 432.9 MB, free: 4.758 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002793/0.4111, allocations: 1.86 MB / 434.7 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01641/0.4275, allocations: 8.528 MB / 443.2 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04121/0.4687, allocations: 36.71 MB / 479.9 MB, free: 4.609 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008998/0.4778, allocations: 3.89 MB / 483.8 MB, free: 0.5195 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002213/0.48, allocations: 1.81 MB / 485.6 MB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01038/0.4904, allocations: 7.523 MB / 493.2 MB, free: 6.898 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/0.4905, allocations: 47.56 kB / 493.2 MB, free: 6.844 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 3.697e-06/0.4905, allocations: 0 / 493.2 MB, free: 6.844 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.04805/0.5385, allocations: 17.5 MB / 0.4987 GB, free: 5.223 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.652e-05/0.5386, allocations: 141.5 kB / 0.4989 GB, free: 5.051 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004444/0.5431, allocations: 3.498 MB / 0.5023 GB, free: 1.551 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001687/0.5433, allocations: 53.7 kB / 0.5023 GB, free: 1.492 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00155/0.5448, allocations: 2.728 MB / 0.505 GB, free: 14.73 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005599/0.5454, allocations: 0.6519 MB / 0.5056 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00129/0.5467, allocations: 1.111 MB / 0.5067 GB, free: 12.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.5468, allocations: 309.1 kB / 0.507 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002574/0.5494, allocations: 1.939 MB / 0.5089 GB, free: 10.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004665/0.5541, allocations: 5.365 MB / 0.5142 GB, free: 3.613 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008396/0.5625, allocations: 7.924 MB / 0.5219 GB, free: 9.984 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.783e-05/0.5626, allocations: 40 kB / 0.5219 GB, free: 9.945 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01488/0.5775, allocations: 8.151 MB / 0.5299 GB, free: 1.781 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.24e-05/0.5776, allocations: 56 kB / 0.5299 GB, free: 1.727 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001185/0.5777, allocations: 120 kB / 0.5301 GB, free: 1.609 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003813/0.5815, allocations: 1.3 MB / 0.5313 GB, free: 312 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003788/0.5853, allocations: 1.252 MB / 0.5326 GB, free: 15.05 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008636/0.594, allocations: 6.55 MB / 0.539 GB, free: 8.359 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00431/0.5983, allocations: 295.6 kB / 0.5392 GB, free: 8.07 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006191/0.599, allocations: 344 kB / 0.5396 GB, free: 7.734 MB / 478.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.002952/0.6019, allocations: 1.81 MB / 0.5413 GB, free: 5.91 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005373/0.6025, allocations: 308 kB / 0.5416 GB, free: 5.605 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006735/0.6092, allocations: 3.366 MB / 0.5449 GB, free: 2.223 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.371e-05/0.6093, allocations: 23.98 kB / 0.5449 GB, free: 2.199 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.6093, allocations: 4 kB / 0.5449 GB, free: 2.195 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.991e-05/0.6093, allocations: 7.984 kB / 0.5449 GB, free: 2.188 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2082/0.8175, allocations: 7.571 MB / 0.5523 GB, free: 149.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.447e-05/0.8176, allocations: 0 / 0.5523 GB, free: 149.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.8187, allocations: 240.7 kB / 0.5526 GB, free: 149.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003889/0.8226, allocations: 1.123 MB / 0.5537 GB, free: 149.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001747/0.8228, allocations: 34.73 kB / 0.5537 GB, free: 149.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008965/0.8318, allocations: 6.16 MB / 0.5597 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.8318, allocations: 5.25 kB / 0.5597 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01011/0.8419, allocations: 5.706 MB / 0.5653 GB, free: 144.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001632/0.8436, allocations: 0.5789 MB / 0.5659 GB, free: 144.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004124/0.844, allocations: 27.48 kB / 0.5659 GB, free: 144.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.8453, allocations: 88.94 kB / 0.566 GB, free: 144.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002732/0.8456, allocations: 93.73 kB / 0.5661 GB, free: 144 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/0.8457, allocations: 42.98 kB / 0.5661 GB, free: 144 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00352/0.8492, allocations: 2.163 MB / 0.5682 GB, free: 143.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.8492, allocations: 0.9688 kB / 0.5682 GB, free: 143.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005069/0.8543, allocations: 0.9119 MB / 0.5691 GB, free: 143.2 MB / 478.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.009183/0.8635, allocations: 6.366 MB / 0.5753 GB, free: 140.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006994/0.8705, allocations: 4.774 MB / 0.58 GB, free: 139.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.856e-06/0.8706, allocations: 7.328 kB / 0.58 GB, free: 139.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002085/0.8727, allocations: 1.529 MB / 0.5815 GB, free: 138.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002638/0.8753, allocations: 368.8 kB / 0.5818 GB, free: 138.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05239/0.9277, allocations: 41.16 MB / 0.622 GB, free: 92.96 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002504/0.9303, allocations: 2.864 MB / 0.6248 GB, free: 90.08 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00314/0.9334, allocations: 1.701 MB / 0.6265 GB, free: 88.38 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001613/0.935, allocations: 1.589 MB / 0.628 GB, free: 86.79 MB / 478.1 MB Notification: Performance of SimCode: time 1.122e-06/0.935, allocations: 0 / 0.628 GB, free: 86.79 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7575/1.693, allocations: 61.38 MB / 0.688 GB, free: 25.32 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.17/19.87, allocations: 19.73 kB / 0.688 GB, free: 25.3 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches