Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001682/0.001682, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001828/0.001828, allocations: 214.9 kB / 24.52 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.478/1.478, allocations: 230.6 MB / 258.3 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 56.06 kB / 378.5 MB, free: 3.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2667, allocations: 53.36 MB / 431.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01154/0.2783, allocations: 8.989 MB / 440.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009242/0.2875, allocations: 3.672 MB / 444.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002376/0.2899, allocations: 63.69 kB / 444.6 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004715/0.2946, allocations: 2.013 MB / 446.6 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005197/0.2998, allocations: 1.658 MB / 448.3 MB, free: 6.309 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00197/0.3018, allocations: 0.7018 MB / 449 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005735/0.3075, allocations: 3.393 MB / 452.4 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003279/0.3108, allocations: 2.215 MB / 454.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002502/0.3133, allocations: 1.269 MB / 455.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003076/0.3164, allocations: 1.892 MB / 457.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000888/0.3173, allocations: 268 kB / 458 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00245/0.3197, allocations: 1.026 MB / 459 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002131/0.3218, allocations: 1.601 MB / 460.6 MB, free: 9.875 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002633/0.3245, allocations: 1.363 MB / 462 MB, free: 8.504 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009357/0.3338, allocations: 5.938 MB / 467.9 MB, free: 2.543 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.044e-05/0.3338, allocations: 4 kB / 467.9 MB, free: 2.539 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3338, allocations: 0 / 467.9 MB, free: 2.539 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002233/0.3341, allocations: 0 / 467.9 MB, free: 2.539 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.01029/0.3444, allocations: 4.153 MB / 472.1 MB, free: 14.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.3444, allocations: 8.031 kB / 472.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000136/0.3445, allocations: 89.52 kB / 472.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001188/0.3457, allocations: 0.6413 MB / 472.8 MB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00677/0.3525, allocations: 1.89 MB / 474.7 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004813/0.3573, allocations: 2.06 MB / 476.8 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001936/0.3575, allocations: 213.1 kB / 477 MB, free: 9.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006807/0.3582, allocations: 263.9 kB / 477.2 MB, free: 9.117 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02026/0.3784, allocations: 10.05 MB / 487.3 MB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.782e-05/0.3785, allocations: 35.69 kB / 487.3 MB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003808/0.3789, allocations: 139.9 kB / 487.5 MB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003213/0.3821, allocations: 1.848 MB / 489.3 MB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01782/0.3999, allocations: 8.567 MB / 497.9 MB, free: 3.781 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04618/0.4461, allocations: 35.44 MB / 0.5208 GB, free: 15.29 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009658/0.4558, allocations: 3.102 MB / 0.5238 GB, free: 12.16 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002448/0.4582, allocations: 1.695 MB / 0.5255 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01101/0.4692, allocations: 6.255 MB / 0.5316 GB, free: 4.152 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.878e-05/0.4693, allocations: 47.5 kB / 0.5316 GB, free: 4.098 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 5.671e-06/0.4693, allocations: 0 / 0.5316 GB, free: 4.098 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.3172/0.7865, allocations: 17.58 MB / 0.5488 GB, free: 101 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.7866, allocations: 143.8 kB / 0.549 GB, free: 100.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003898/0.7905, allocations: 3.478 MB / 0.5523 GB, free: 98.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001816/0.7906, allocations: 53.7 kB / 0.5524 GB, free: 98.24 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00132/0.792, allocations: 2.844 MB / 0.5552 GB, free: 95.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000452/0.7924, allocations: 0.6725 MB / 0.5558 GB, free: 94.76 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00119/0.7936, allocations: 1.119 MB / 0.5569 GB, free: 93.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.785e-05/0.7937, allocations: 305.1 kB / 0.5572 GB, free: 93.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002254/0.7959, allocations: 1.959 MB / 0.5591 GB, free: 91.37 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003643/0.7996, allocations: 5.373 MB / 0.5644 GB, free: 84.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006272/0.8058, allocations: 7.941 MB / 0.5721 GB, free: 74.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.396e-05/0.8059, allocations: 32 kB / 0.5722 GB, free: 74.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01169/0.8176, allocations: 8.181 MB / 0.5802 GB, free: 66.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.554e-05/0.8176, allocations: 60 kB / 0.5802 GB, free: 66.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.453e-05/0.8177, allocations: 120 kB / 0.5803 GB, free: 66.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003442/0.8212, allocations: 1.305 MB / 0.5816 GB, free: 64.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003021/0.8242, allocations: 1.259 MB / 0.5828 GB, free: 63.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006941/0.8311, allocations: 6.384 MB / 0.5891 GB, free: 57.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003717/0.8348, allocations: 303.7 kB / 0.5894 GB, free: 56.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003797/0.8352, allocations: 351.3 kB / 0.5897 GB, free: 56.56 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.002325/0.8375, allocations: 1.803 MB / 0.5914 GB, free: 54.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004076/0.8379, allocations: 321.8 kB / 0.5918 GB, free: 54.44 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005951/0.8439, allocations: 3.369 MB / 0.595 GB, free: 51.05 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.909e-05/0.8439, allocations: 20 kB / 0.5951 GB, free: 51.03 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.8439, allocations: 4 kB / 0.5951 GB, free: 51.03 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.8439, allocations: 15.97 kB / 0.5951 GB, free: 51.01 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01115/0.8551, allocations: 7.26 MB / 0.6022 GB, free: 43.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.8551, allocations: 5.25 kB / 0.6022 GB, free: 43.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.8561, allocations: 247.7 kB / 0.6024 GB, free: 43.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003267/0.8594, allocations: 1.116 MB / 0.6035 GB, free: 42.36 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/0.8595, allocations: 28 kB / 0.6035 GB, free: 42.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006603/0.8661, allocations: 6.02 MB / 0.6094 GB, free: 36.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.8661, allocations: 4.062 kB / 0.6094 GB, free: 36.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008004/0.8741, allocations: 5.747 MB / 0.615 GB, free: 30.42 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008116/0.8749, allocations: 297.7 kB / 0.6153 GB, free: 30.13 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003295/0.8753, allocations: 20 kB / 0.6153 GB, free: 30.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/0.8765, allocations: 95.88 kB / 0.6154 GB, free: 30.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002449/0.8767, allocations: 96.75 kB / 0.6155 GB, free: 29.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/0.8768, allocations: 43.91 kB / 0.6156 GB, free: 29.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002669/0.8795, allocations: 2.15 MB / 0.6177 GB, free: 27.74 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.8795, allocations: 3.938 kB / 0.6177 GB, free: 27.74 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003868/0.8834, allocations: 0.8955 MB / 0.6185 GB, free: 26.84 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.007981/0.8913, allocations: 6.388 MB / 0.6248 GB, free: 20.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006211/0.8976, allocations: 4.611 MB / 0.6293 GB, free: 15.83 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.8976, allocations: 0 / 0.6293 GB, free: 15.83 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001777/0.8993, allocations: 1.445 MB / 0.6307 GB, free: 14.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001835/0.9012, allocations: 356.5 kB / 0.631 GB, free: 14.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06092/0.9621, allocations: 41.33 MB / 0.6714 GB, free: 15.41 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003021/0.9651, allocations: 2.296 MB / 0.6736 GB, free: 13.07 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003931/0.969, allocations: 1.699 MB / 0.6753 GB, free: 11.37 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002216/0.9713, allocations: 1.581 MB / 0.6768 GB, free: 9.789 MB / 494.1 MB Notification: Performance of SimCode: time 1.122e-06/0.9713, allocations: 0 / 0.6768 GB, free: 9.789 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.207/2.178, allocations: 62.84 MB / 0.7382 GB, free: 184.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.03/22.21, allocations: 4.844 kB / 0.7382 GB, free: 184.2 MB / 0.5294 GB " [Timeout remaining time 638] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 26.70345551194623]