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.001443/0.001443, allocations: 106.5 kB / 17.73 MB, free: 5.32 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.001683/0.001683, allocations: 187 kB / 18.66 MB, free: 4.391 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.436/1.436, 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.001414/0.001414, allocations: 59.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0842/0.08563, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.1745/0.2601, allocations: 10.31 MB / 385 MB, free: 7.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007513/0.2677, allocations: 3.873 MB / 388.8 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001985/0.2698, allocations: 53.72 kB / 388.9 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004022/0.2738, allocations: 2.085 MB / 391 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005089/0.2789, allocations: 1.672 MB / 392.6 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002459/0.2814, allocations: 0.6839 MB / 393.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006771/0.2882, allocations: 3.395 MB / 396.7 MB, free: 2.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003964/0.2922, allocations: 2.698 MB / 399.4 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002892/0.2951, allocations: 1.266 MB / 400.7 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003076/0.2982, allocations: 1.769 MB / 402.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001075/0.2994, allocations: 262.5 kB / 402.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00307/0.3024, allocations: 1.111 MB / 403.8 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002437/0.3049, allocations: 1.591 MB / 405.4 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003698/0.3086, allocations: 1.87 MB / 407.3 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008579/0.3172, allocations: 5.979 MB / 413.3 MB, free: 8.672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.3173, allocations: 1.406 kB / 413.3 MB, free: 8.672 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3173, allocations: 0 / 413.3 MB, free: 8.672 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002259/0.3175, allocations: 4 kB / 413.3 MB, free: 8.668 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.01162/0.3292, allocations: 4.258 MB / 417.5 MB, free: 4.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.3292, allocations: 16.03 kB / 417.5 MB, free: 4.801 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002003/0.3312, allocations: 0.6374 MB / 418.2 MB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007879/0.3391, allocations: 1.89 MB / 420.1 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006402/0.3456, allocations: 2.374 MB / 422.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002024/0.3458, allocations: 205.2 kB / 422.6 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001126/0.347, allocations: 267.9 kB / 422.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02099/0.368, allocations: 9.981 MB / 432.9 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001417/0.3682, allocations: 39.69 kB / 432.9 MB, free: 4.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009334/0.3691, allocations: 139.9 kB / 433.1 MB, free: 4.535 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003593/0.3727, allocations: 1.852 MB / 434.9 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01974/0.3925, allocations: 8.536 MB / 443.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05138/0.4439, allocations: 36.77 MB / 480.2 MB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01027/0.4542, allocations: 3.886 MB / 484.1 MB, free: 252 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002671/0.4569, allocations: 1.81 MB / 485.9 MB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01325/0.4702, allocations: 7.545 MB / 493.5 MB, free: 6.605 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.264e-05/0.4703, allocations: 43.56 kB / 493.5 MB, free: 6.555 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 5.58e-06/0.4703, allocations: 0 / 493.5 MB, free: 6.555 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.05652/0.5269, allocations: 17.69 MB / 0.4992 GB, free: 4.766 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.592e-05/0.527, allocations: 149.4 kB / 0.4994 GB, free: 4.586 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006321/0.5333, allocations: 3.51 MB / 0.5028 GB, free: 1.074 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003762/0.5337, allocations: 49.7 kB / 0.5028 GB, free: 1.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002279/0.536, allocations: 2.846 MB / 0.5056 GB, free: 14.15 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009697/0.537, allocations: 0.6745 MB / 0.5063 GB, free: 13.47 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002789/0.5398, allocations: 1.12 MB / 0.5074 GB, free: 12.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.54, allocations: 305.1 kB / 0.5077 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003503/0.5435, allocations: 1.939 MB / 0.5095 GB, free: 10.09 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006243/0.5498, allocations: 5.365 MB / 0.5148 GB, free: 3.012 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009542/0.5593, allocations: 7.924 MB / 0.5225 GB, free: 9.387 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.83e-05/0.5595, allocations: 35.94 kB / 0.5226 GB, free: 9.352 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01712/0.5766, allocations: 8.172 MB / 0.5305 GB, free: 1.168 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001415/0.5768, allocations: 56 kB / 0.5306 GB, free: 1.113 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001986/0.577, allocations: 124 kB / 0.5307 GB, free: 0.9922 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00444/0.5814, allocations: 1.292 MB / 0.532 GB, free: 15.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004596/0.5861, allocations: 1.255 MB / 0.5332 GB, free: 14.44 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0103/0.5964, allocations: 6.555 MB / 0.5396 GB, free: 7.742 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004308/0.6008, allocations: 307.7 kB / 0.5399 GB, free: 7.441 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009447/0.6017, allocations: 336 kB / 0.5402 GB, free: 7.113 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.003705/0.6055, allocations: 1.81 MB / 0.542 GB, free: 5.289 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007263/0.6062, allocations: 321.8 kB / 0.5423 GB, free: 4.973 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007877/0.6141, allocations: 3.366 MB / 0.5456 GB, free: 1.59 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.932e-05/0.6142, allocations: 16 kB / 0.5456 GB, free: 1.574 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.645e-05/0.6142, allocations: 4 kB / 0.5456 GB, free: 1.57 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.074e-05/0.6142, allocations: 12.06 kB / 0.5456 GB, free: 1.559 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.198/0.8122, allocations: 7.58 MB / 0.553 GB, free: 149 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-05/0.8123, allocations: 1.219 kB / 0.553 GB, free: 149 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/0.8137, allocations: 242.6 kB / 0.5532 GB, free: 149 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004345/0.818, allocations: 1.117 MB / 0.5543 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003912/0.8185, allocations: 37 kB / 0.5544 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009296/0.8278, allocations: 6.164 MB / 0.5604 GB, free: 145.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.8278, allocations: 1.531 kB / 0.5604 GB, free: 145.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01109/0.8389, allocations: 5.734 MB / 0.566 GB, free: 143.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002079/0.841, allocations: 0.5837 MB / 0.5666 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009887/0.842, allocations: 22.09 kB / 0.5666 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001961/0.844, allocations: 89.66 kB / 0.5667 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004319/0.8445, allocations: 91.69 kB / 0.5668 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002226/0.8447, allocations: 53.83 kB / 0.5668 GB, free: 143.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004557/0.8493, allocations: 2.166 MB / 0.5689 GB, free: 142.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.8493, allocations: 0 / 0.5689 GB, free: 142.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00526/0.8546, allocations: 0.9081 MB / 0.5698 GB, free: 142.8 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.01004/0.8647, allocations: 6.374 MB / 0.576 GB, free: 140.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007191/0.8719, allocations: 4.784 MB / 0.5807 GB, free: 138.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.8719, allocations: 0 / 0.5807 GB, free: 138.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002115/0.8741, allocations: 1.537 MB / 0.5822 GB, free: 138 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00235/0.8764, allocations: 374 kB / 0.5826 GB, free: 137.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05277/0.9292, allocations: 41.31 MB / 0.6229 GB, free: 92.14 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002862/0.9321, allocations: 2.862 MB / 0.6257 GB, free: 89.27 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003417/0.9356, allocations: 1.703 MB / 0.6274 GB, free: 87.56 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002016/0.9376, allocations: 1.585 MB / 0.6289 GB, free: 85.98 MB / 478.1 MB Notification: Performance of SimCode: time 1.273e-06/0.9376, allocations: 0 / 0.6289 GB, free: 85.98 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1086/1.046, allocations: 60.35 MB / 0.6878 GB, free: 25.55 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.67/19.72, allocations: 11.8 kB / 0.6879 GB, free: 25.54 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 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.csv","/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