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.0008676/0.0008676, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0009121/0.0009121, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8778/0.8778, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.59e-05/1.743e-05, allocations: 10.22 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.006846/0.006863, allocations: 9.048 MB / 333.6 MB, free: 6.844 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005641/0.0125, allocations: 3.699 MB / 337.3 MB, free: 3.133 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007357/0.01324, allocations: 59.75 kB / 337.4 MB, free: 3.074 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00213/0.01537, allocations: 2.129 MB / 339.5 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00246/0.01783, allocations: 1.707 MB / 341.2 MB, free: 15.22 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009811/0.01881, allocations: 0.7405 MB / 342 MB, free: 14.48 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002818/0.02163, allocations: 3.771 MB / 345.7 MB, free: 10.7 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001996/0.02362, allocations: 2.461 MB / 348.2 MB, free: 8.184 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001809/0.02543, allocations: 1.906 MB / 350.1 MB, free: 6.273 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001717/0.02715, allocations: 1.886 MB / 352 MB, free: 4.383 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003626/0.02751, allocations: 268 kB / 352.3 MB, free: 4.121 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001395/0.02891, allocations: 1.053 MB / 353.3 MB, free: 3.066 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00104/0.02995, allocations: 1.671 MB / 355 MB, free: 1.391 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001033/0.03098, allocations: 1.051 MB / 356 MB, free: 344 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004464/0.03544, allocations: 5.949 MB / 362 MB, free: 10.37 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.03545, allocations: 0 / 362 MB, free: 10.37 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.03545, allocations: 0 / 362 MB, free: 10.37 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001207/0.03557, allocations: 4 kB / 362 MB, free: 10.36 MB / 330.7 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.005826/0.0414, allocations: 4.164 MB / 366.1 MB, free: 6.145 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.04144, allocations: 8.031 kB / 366.2 MB, free: 6.137 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005264/0.04197, allocations: 0.6413 MB / 366.8 MB, free: 5.484 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003697/0.04567, allocations: 1.979 MB / 368.8 MB, free: 3.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002509/0.04818, allocations: 1.9 MB / 370.7 MB, free: 1.566 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.04828, allocations: 201.2 kB / 370.9 MB, free: 1.367 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003516/0.04863, allocations: 271.8 kB / 371.1 MB, free: 1.102 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0116/0.06023, allocations: 10.05 MB / 381.2 MB, free: 6.355 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.547e-05/0.06032, allocations: 47.64 kB / 381.2 MB, free: 6.309 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002657/0.06058, allocations: 131.9 kB / 381.4 MB, free: 6.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001853/0.06243, allocations: 1.852 MB / 383.2 MB, free: 4.324 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01332/0.07575, allocations: 8.544 MB / 391.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03124/0.107, allocations: 35.55 MB / 427.3 MB, free: 7.172 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005405/0.1124, allocations: 3.239 MB / 430.6 MB, free: 3.898 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001457/0.1139, allocations: 1.677 MB / 432.2 MB, free: 2.211 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00654/0.1204, allocations: 6.361 MB / 438.6 MB, free: 11.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.1204, allocations: 55.44 kB / 438.6 MB, free: 11.74 MB / 410.7 MB Notification: Performance of pre-optimization done (n=150): time 4.859e-06/0.1204, allocations: 0 / 438.6 MB, free: 11.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=166): time 0.1922/0.3126, allocations: 18.11 MB / 456.8 MB, free: 113.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.3127, allocations: 144.5 kB / 456.9 MB, free: 113.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003269/0.316, allocations: 3.84 MB / 460.7 MB, free: 111.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001313/0.3161, allocations: 45.58 kB / 460.8 MB, free: 111.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007961/0.3169, allocations: 2.812 MB / 463.6 MB, free: 109.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000369/0.3173, allocations: 0.6683 MB / 464.3 MB, free: 109.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008138/0.3181, allocations: 1.098 MB / 465.4 MB, free: 108.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.674e-05/0.3181, allocations: 309.5 kB / 465.7 MB, free: 108.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001691/0.3198, allocations: 1.963 MB / 467.6 MB, free: 107.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002235/0.322, allocations: 5.394 MB / 473 MB, free: 101.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004421/0.3264, allocations: 7.952 MB / 481 MB, free: 92.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.572e-05/0.3265, allocations: 32 kB / 481 MB, free: 92.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.007916/0.3344, allocations: 8.199 MB / 489.2 MB, free: 84.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.935e-05/0.3345, allocations: 60 kB / 489.3 MB, free: 84.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.081e-05/0.3345, allocations: 124.2 kB / 489.4 MB, free: 83.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00197/0.3365, allocations: 1.296 MB / 490.7 MB, free: 82.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001838/0.3383, allocations: 1.274 MB / 491.9 MB, free: 81.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004913/0.3433, allocations: 6.399 MB / 498.3 MB, free: 74.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002904/0.3462, allocations: 354.5 kB / 498.7 MB, free: 74.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003003/0.3465, allocations: 340 kB / 499 MB, free: 74.23 MB / 410.7 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.001786/0.3482, allocations: 1.811 MB / 0.4891 GB, free: 72.41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003984/0.3486, allocations: 321.8 kB / 0.4894 GB, free: 72.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003589/0.3522, allocations: 3.373 MB / 0.4927 GB, free: 68.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.71e-05/0.3522, allocations: 16 kB / 0.4927 GB, free: 68.68 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.3523, allocations: 4 kB / 0.4927 GB, free: 68.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.3523, allocations: 11.97 kB / 0.4927 GB, free: 68.66 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007919/0.3602, allocations: 7.334 MB / 0.4999 GB, free: 61.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.3602, allocations: 0 / 0.4999 GB, free: 61.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000589/0.3608, allocations: 243.7 kB / 0.5001 GB, free: 61.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00179/0.3626, allocations: 1.112 MB / 0.5012 GB, free: 59.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.552e-05/0.3627, allocations: 35.83 kB / 0.5012 GB, free: 59.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004485/0.3672, allocations: 6.037 MB / 0.5071 GB, free: 53.77 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3672, allocations: 0.875 kB / 0.5071 GB, free: 53.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005271/0.3724, allocations: 5.746 MB / 0.5128 GB, free: 48.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006799/0.3731, allocations: 317.7 kB / 0.5131 GB, free: 47.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002147/0.3733, allocations: 24 kB / 0.5131 GB, free: 47.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007701/0.3741, allocations: 139.8 kB / 0.5132 GB, free: 47.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.3743, allocations: 92.77 kB / 0.5133 GB, free: 47.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.037e-05/0.3743, allocations: 47.98 kB / 0.5133 GB, free: 47.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002125/0.3765, allocations: 2.267 MB / 0.5156 GB, free: 45.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3765, allocations: 0 / 0.5156 GB, free: 45.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003048/0.3795, allocations: 0.9841 MB / 0.5165 GB, free: 44.16 MB / 410.7 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.005373/0.3849, allocations: 6.405 MB / 0.5228 GB, free: 37.72 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004534/0.3894, allocations: 4.62 MB / 0.5273 GB, free: 33.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.3894, allocations: 0 / 0.5273 GB, free: 33.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.3907, allocations: 1.445 MB / 0.5287 GB, free: 31.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001598/0.3923, allocations: 354.9 kB / 0.529 GB, free: 31.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03805/0.4303, allocations: 41.63 MB / 0.5697 GB, free: 412 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002331/0.4326, allocations: 2.295 MB / 0.5719 GB, free: 14.08 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002526/0.4352, allocations: 1.711 MB / 0.5736 GB, free: 12.37 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001508/0.4367, allocations: 1.59 MB / 0.5752 GB, free: 10.78 MB / 442.7 MB Notification: Performance of SimCode: time 1.443e-06/0.4367, allocations: 0 / 0.5752 GB, free: 10.78 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2241/0.6607, allocations: 62.25 MB / 0.6359 GB, free: 152 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.319/9.98, allocations: 9.672 kB / 0.636 GB, free: 152 MB / 474.7 MB " [Timeout remaining time 650] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/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: 11.903419236652553]