Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 120.1 kB / 17.79 MB, free: 5.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 194.8 kB / 20.73 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 225.6 MB / 249.1 MB, free: 3.582 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 51.92 kB / 365.7 MB, free: 0.793 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1085, allocations: 52.15 MB / 417.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01305/0.1216, allocations: 10.33 MB / 428.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008294/0.1299, allocations: 3.886 MB / 432 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001602/0.1315, allocations: 67.69 kB / 432.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004327/0.1358, allocations: 2.11 MB / 434.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004748/0.1406, allocations: 1.677 MB / 435.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00191/0.1425, allocations: 0.6901 MB / 436.6 MB, free: 9.723 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005787/0.1482, allocations: 3.36 MB / 439.9 MB, free: 6.355 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00349/0.1517, allocations: 2.302 MB / 442.2 MB, free: 4 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002365/0.1541, allocations: 1.285 MB / 443.5 MB, free: 2.711 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003015/0.1571, allocations: 1.9 MB / 445.4 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007143/0.1578, allocations: 264 kB / 445.7 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2343/0.3921, allocations: 1.158 MB / 446.8 MB, free: 11.7 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002107/0.3943, allocations: 1.608 MB / 448.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002257/0.3965, allocations: 1.87 MB / 450.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01187/0.4084, allocations: 5.976 MB / 456.3 MB, free: 10.08 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.4084, allocations: 1.156 kB / 456.3 MB, free: 10.08 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4084, allocations: 1.406 kB / 456.3 MB, free: 10.08 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003466/0.4087, allocations: 0.8125 kB / 456.3 MB, free: 10.08 MB / 366.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.01616/0.4249, allocations: 4.251 MB / 460.5 MB, free: 8.266 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.425, allocations: 9.75 kB / 460.5 MB, free: 8.266 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002079/0.427, allocations: 0.6399 MB / 461.2 MB, free: 8.195 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007749/0.4348, allocations: 1.885 MB / 463.1 MB, free: 7.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005816/0.4406, allocations: 2.227 MB / 465.3 MB, free: 7.402 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002313/0.4408, allocations: 209.9 kB / 465.5 MB, free: 7.395 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001489/0.4423, allocations: 269.9 kB / 465.8 MB, free: 7.391 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02156/0.4639, allocations: 9.972 MB / 475.7 MB, free: 3.441 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001106/0.464, allocations: 44.36 kB / 475.8 MB, free: 3.434 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004389/0.4644, allocations: 135.2 kB / 475.9 MB, free: 3.375 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002976/0.4674, allocations: 1.846 MB / 477.7 MB, free: 2.676 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01785/0.4852, allocations: 8.544 MB / 486.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05328/0.5385, allocations: 36.76 MB / 0.5108 GB, free: 9.816 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01067/0.5492, allocations: 3.761 MB / 0.5145 GB, free: 5.875 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003006/0.5522, allocations: 1.697 MB / 0.5161 GB, free: 4.168 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01338/0.5656, allocations: 7.53 MB / 0.5235 GB, free: 12.41 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.391e-05/0.5657, allocations: 55.31 kB / 0.5235 GB, free: 12.36 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 5.651e-06/0.5657, allocations: 7.938 kB / 0.5235 GB, free: 12.35 MB / 430.1 MB Notification: Performance of matching and sorting (n=166): time 0.05614/0.6218, allocations: 17.61 MB / 0.5407 GB, free: 10.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.6219, allocations: 145.5 kB / 0.5409 GB, free: 10.53 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00571/0.6276, allocations: 3.486 MB / 0.5443 GB, free: 7.039 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000378/0.628, allocations: 53.7 kB / 0.5443 GB, free: 6.98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002395/0.6304, allocations: 2.854 MB / 0.5471 GB, free: 4.145 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009849/0.6314, allocations: 0.6712 MB / 0.5478 GB, free: 3.48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001849/0.6332, allocations: 1.116 MB / 0.5489 GB, free: 2.355 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.6334, allocations: 309.1 kB / 0.5492 GB, free: 2.051 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003674/0.637, allocations: 1.935 MB / 0.551 GB, free: 112 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006701/0.6437, allocations: 5.364 MB / 0.5563 GB, free: 9.09 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01114/0.6549, allocations: 7.915 MB / 0.564 GB, free: 15.96 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001109/0.655, allocations: 36 kB / 0.564 GB, free: 15.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01899/0.674, allocations: 8.159 MB / 0.572 GB, free: 7.926 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.6741, allocations: 60 kB / 0.5721 GB, free: 7.867 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001641/0.6743, allocations: 120 kB / 0.5722 GB, free: 7.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004674/0.6789, allocations: 1.298 MB / 0.5735 GB, free: 6.449 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004772/0.6837, allocations: 1.252 MB / 0.5747 GB, free: 5.195 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01057/0.6943, allocations: 6.549 MB / 0.5811 GB, free: 14.51 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004708/0.699, allocations: 303.6 kB / 0.5814 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001014/0.7, allocations: 340 kB / 0.5817 GB, free: 13.88 MB / 494.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.003865/0.7039, allocations: 1.807 MB / 0.5835 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007318/0.7046, allocations: 325.7 kB / 0.5838 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008085/0.7127, allocations: 3.36 MB / 0.587 GB, free: 8.375 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.657e-05/0.7127, allocations: 16 kB / 0.5871 GB, free: 8.359 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.507e-05/0.7127, allocations: 9.125 kB / 0.5871 GB, free: 8.352 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.801e-05/0.7128, allocations: 3.984 kB / 0.5871 GB, free: 8.348 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0175/0.7303, allocations: 7.563 MB / 0.5945 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.918e-05/0.7303, allocations: 0 / 0.5945 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/0.7316, allocations: 243.6 kB / 0.5947 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004086/0.7356, allocations: 1.126 MB / 0.5958 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002973/0.7359, allocations: 27.91 kB / 0.5958 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009823/0.7458, allocations: 6.169 MB / 0.6018 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.7458, allocations: 0 / 0.6018 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01138/0.7571, allocations: 5.71 MB / 0.6074 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001156/0.7583, allocations: 374.8 kB / 0.6078 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007004/0.759, allocations: 27.14 kB / 0.6078 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/0.7606, allocations: 91.88 kB / 0.6079 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003682/0.761, allocations: 80.88 kB / 0.608 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001466/0.7611, allocations: 47.91 kB / 0.608 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004448/0.7656, allocations: 2.154 MB / 0.6101 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.7656, allocations: 0 / 0.6101 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005725/0.7713, allocations: 0.9062 MB / 0.611 GB, free: 15.62 MB / 0.5137 GB 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.01185/0.7832, allocations: 6.364 MB / 0.6172 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.009307/0.7925, allocations: 4.587 MB / 0.6217 GB, free: 4.648 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/0.7925, allocations: 0 / 0.6217 GB, free: 4.648 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002809/0.7953, allocations: 1.437 MB / 0.6231 GB, free: 3.207 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002784/0.7981, allocations: 357.4 kB / 0.6234 GB, free: 2.863 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2721/1.07, allocations: 41.21 MB / 0.6637 GB, free: 153.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003133/1.073, allocations: 2.844 MB / 0.6665 GB, free: 152.1 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003586/1.077, allocations: 1.703 MB / 0.6681 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002391/1.079, allocations: 1.582 MB / 0.6697 GB, free: 150 MB / 0.5137 GB Notification: Performance of SimCode: time 1.272e-06/1.079, allocations: 0 / 0.6697 GB, free: 150 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09989/1.179, allocations: 60.75 MB / 0.729 GB, free: 90.09 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.36/20.54, allocations: 10.59 kB / 0.729 GB, free: 90.08 MB / 0.5137 GB " [Timeout remaining time 639] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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.0019992 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv","/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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: 23.158362186979502]