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.0009103/0.0009104, allocations: 92.89 kB / 17.3 MB, free: 6.395 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.001079/0.001079, allocations: 172.5 kB / 18.2 MB, free: 5.551 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.282/1.282, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.000425/0.000425, allocations: 12 kB / 281.5 MB, free: 3.309 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07949/0.07992, allocations: 47.58 MB / 329.1 MB, free: 3.664 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.04859/0.1286, allocations: 33.78 MB / 362.8 MB, free: 1.746 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01744/0.146, allocations: 7.857 MB / 370.7 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004999/0.1511, allocations: 143.6 kB / 370.8 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001303/0.1524, allocations: 386 kB / 371.2 MB, free: 9.344 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003876/0.1563, allocations: 1.538 MB / 372.7 MB, free: 7.801 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001563/0.1579, allocations: 0.6318 MB / 373.4 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005771/0.1637, allocations: 4.789 MB / 378.2 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1581/0.3218, allocations: 3.738 MB / 381.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002278/0.3242, allocations: 0.97 MB / 382.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002878/0.3271, allocations: 1.676 MB / 384.6 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008434/0.3279, allocations: 123.2 kB / 384.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002568/0.3305, allocations: 1.046 MB / 385.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002196/0.3327, allocations: 1.445 MB / 387.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002481/0.3352, allocations: 1.718 MB / 388.9 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005761/0.341, allocations: 5.545 MB / 394.4 MB, free: 8.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.341, allocations: 0 / 394.4 MB, free: 8.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.341, allocations: 0 / 394.4 MB, free: 8.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001863/0.3412, allocations: 0 / 394.4 MB, free: 8.586 MB / 318.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.007648/0.3489, allocations: 3.405 MB / 397.8 MB, free: 6.902 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.3489, allocations: 9.594 kB / 397.8 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001311/0.3503, allocations: 0.643 MB / 398.5 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006827/0.3571, allocations: 1.912 MB / 400.4 MB, free: 5.855 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004366/0.3615, allocations: 2.322 MB / 402.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001593/0.3617, allocations: 211.5 kB / 402.9 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006976/0.3624, allocations: 264.9 kB / 403.2 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01624/0.3786, allocations: 10 MB / 413.2 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001018/0.3788, allocations: 37.69 kB / 413.2 MB, free: 1.324 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003715/0.3791, allocations: 130.1 kB / 413.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002575/0.3817, allocations: 1.856 MB / 415.2 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01736/0.3991, allocations: 8.56 MB / 423.8 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04303/0.4422, allocations: 36.87 MB / 460.6 MB, free: 3.363 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009108/0.4513, allocations: 3.869 MB / 464.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002324/0.4537, allocations: 1.809 MB / 466.3 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009775/0.4635, allocations: 7.531 MB / 473.8 MB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/0.4635, allocations: 51.48 kB / 473.9 MB, free: 5.672 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 3.837e-06/0.4636, allocations: 0 / 473.9 MB, free: 5.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.0502/0.5138, allocations: 17.44 MB / 491.3 MB, free: 4.152 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.099e-05/0.5139, allocations: 145.5 kB / 491.5 MB, free: 3.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004575/0.5185, allocations: 3.502 MB / 495 MB, free: 488 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002807/0.5188, allocations: 49.7 kB / 495 MB, free: 432 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001731/0.5205, allocations: 2.736 MB / 497.8 MB, free: 13.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000732/0.5212, allocations: 0.6429 MB / 498.4 MB, free: 13.06 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005454/0.5218, allocations: 481.5 kB / 498.9 MB, free: 12.59 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.18e-05/0.5219, allocations: 305.1 kB / 499.2 MB, free: 12.29 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002925/0.5248, allocations: 1.939 MB / 0.4894 GB, free: 10.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004814/0.5296, allocations: 5.371 MB / 0.4946 GB, free: 3.316 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008547/0.5382, allocations: 7.908 MB / 0.5023 GB, free: 10.2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.134e-05/0.5383, allocations: 43.94 kB / 0.5024 GB, free: 10.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01463/0.5529, allocations: 8.15 MB / 0.5103 GB, free: 2.734 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.744e-05/0.553, allocations: 63.73 kB / 0.5104 GB, free: 2.676 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001192/0.5532, allocations: 120 kB / 0.5105 GB, free: 2.559 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003881/0.5571, allocations: 1.297 MB / 0.5118 GB, free: 1.258 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003729/0.5608, allocations: 1.256 MB / 0.513 GB, free: 116 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008332/0.5692, allocations: 6.109 MB / 0.519 GB, free: 9.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004036/0.5732, allocations: 299.5 kB / 0.5193 GB, free: 9.637 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007363/0.574, allocations: 340 kB / 0.5196 GB, free: 9.305 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.003445/0.5774, allocations: 1.815 MB / 0.5214 GB, free: 7.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005496/0.578, allocations: 312 kB / 0.5217 GB, free: 7.172 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007215/0.5852, allocations: 3.364 MB / 0.5249 GB, free: 3.797 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-05/0.5853, allocations: 23.98 kB / 0.525 GB, free: 3.773 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.5853, allocations: 7.938 kB / 0.525 GB, free: 3.766 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.61e-05/0.5853, allocations: 7.969 kB / 0.525 GB, free: 3.758 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1586/0.7439, allocations: 7.601 MB / 0.5324 GB, free: 161.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.459e-05/0.7439, allocations: 0.9688 kB / 0.5324 GB, free: 161.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.745, allocations: 242.7 kB / 0.5326 GB, free: 161.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003744/0.7488, allocations: 1.118 MB / 0.5337 GB, free: 161.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001588/0.749, allocations: 32.42 kB / 0.5338 GB, free: 161.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007677/0.7566, allocations: 5.713 MB / 0.5393 GB, free: 159.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.7567, allocations: 2.688 kB / 0.5393 GB, free: 159.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008612/0.7653, allocations: 5.707 MB / 0.5449 GB, free: 157.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001218/0.7665, allocations: 0.5793 MB / 0.5455 GB, free: 156.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000307/0.7669, allocations: 25.66 kB / 0.5455 GB, free: 156.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001239/0.7681, allocations: 98.98 kB / 0.5456 GB, free: 156.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002586/0.7684, allocations: 92.08 kB / 0.5457 GB, free: 156.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.7685, allocations: 44.8 kB / 0.5457 GB, free: 156.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002723/0.7712, allocations: 2.164 MB / 0.5478 GB, free: 156.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7712, allocations: 3.531 kB / 0.5478 GB, free: 156.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003548/0.7748, allocations: 0.9117 MB / 0.5487 GB, free: 156 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.008233/0.783, allocations: 6.359 MB / 0.5549 GB, free: 153.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006449/0.7895, allocations: 4.767 MB / 0.5596 GB, free: 149.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.7895, allocations: 0 / 0.5596 GB, free: 149.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001998/0.7915, allocations: 1.54 MB / 0.5611 GB, free: 148.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002489/0.794, allocations: 340.2 kB / 0.5614 GB, free: 148.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05406/0.8481, allocations: 47.18 MB / 0.6075 GB, free: 95.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002324/0.8505, allocations: 2.865 MB / 0.6103 GB, free: 92.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003608/0.8541, allocations: 1.714 MB / 0.612 GB, free: 91.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001531/0.8556, allocations: 1.589 MB / 0.6135 GB, free: 89.5 MB / 446.1 MB Notification: Performance of SimCode: time 9.81e-07/0.8556, allocations: 0 / 0.6135 GB, free: 89.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07213/0.9278, allocations: 61.61 MB / 0.6737 GB, free: 27.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001428/0.9279, allocations: 254.1 kB / 0.6739 GB, free: 27.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.64/4.568, allocations: 0 / 0.6739 GB, free: 27.55 MB / 446.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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches