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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 112.2 kB / 17.28 MB, free: 6.199 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.001018/0.001018, allocations: 193.3 kB / 18.2 MB, free: 5.277 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.468/1.468, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001147/0.001147, allocations: 43.94 kB / 280.2 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1058, allocations: 46.63 MB / 326.8 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.03524/0.1411, allocations: 34.77 MB / 361.6 MB, free: 1.875 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02557/0.1668, allocations: 7.814 MB / 369.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01098/0.1778, allocations: 147.6 kB / 369.5 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006425/0.1843, allocations: 1.994 MB / 371.5 MB, free: 7.891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007032/0.1914, allocations: 1.534 MB / 373 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002693/0.1941, allocations: 0.6436 MB / 373.7 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007284/0.2014, allocations: 3.416 MB / 377.1 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2393/0.4408, allocations: 2.85 MB / 379.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005659/0.4465, allocations: 1.285 MB / 381.2 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006163/0.4527, allocations: 1.951 MB / 383.2 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001721/0.4545, allocations: 262.5 kB / 383.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005103/0.4596, allocations: 1.126 MB / 384.6 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004151/0.4638, allocations: 1.597 MB / 386.2 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007324/0.4712, allocations: 1.891 MB / 388.1 MB, free: 9.949 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01337/0.4846, allocations: 5.778 MB / 393.8 MB, free: 9.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.4847, allocations: 0 / 393.8 MB, free: 9.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4847, allocations: 0 / 393.8 MB, free: 9.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003706/0.4851, allocations: 0 / 393.8 MB, free: 9.145 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.02194/0.507, allocations: 4.132 MB / 398 MB, free: 7.445 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.49e-05/0.5071, allocations: 9.625 kB / 398 MB, free: 7.445 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008099/0.5152, allocations: 1.858 MB / 399.8 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005808/0.5211, allocations: 1.93 MB / 401.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003033/0.5214, allocations: 209.7 kB / 402 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001866/0.5233, allocations: 270 kB / 402.2 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02595/0.5493, allocations: 9.982 MB / 412.2 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002408/0.5495, allocations: 37.16 kB / 412.2 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001581/0.5511, allocations: 134.4 kB / 412.4 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003336/0.5545, allocations: 1.85 MB / 414.2 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02225/0.5768, allocations: 8.543 MB / 422.8 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05719/0.634, allocations: 36.85 MB / 459.6 MB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01049/0.6446, allocations: 3.884 MB / 463.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00296/0.6476, allocations: 1.81 MB / 465.3 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01326/0.6609, allocations: 7.522 MB / 472.8 MB, free: 5.344 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.402e-05/0.661, allocations: 54.59 kB / 472.9 MB, free: 5.285 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 5.25e-06/0.661, allocations: 4 kB / 472.9 MB, free: 5.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.0584/0.7194, allocations: 17.44 MB / 490.3 MB, free: 3.762 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.982e-05/0.7195, allocations: 149.5 kB / 490.5 MB, free: 3.586 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008408/0.728, allocations: 3.481 MB / 494 MB, free: 104 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000546/0.7285, allocations: 53.7 kB / 494 MB, free: 44 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002714/0.7313, allocations: 2.735 MB / 496.8 MB, free: 13.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001172/0.7325, allocations: 0.6441 MB / 497.4 MB, free: 12.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003053/0.7355, allocations: 1.121 MB / 498.5 MB, free: 11.55 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.7357, allocations: 301.1 kB / 498.8 MB, free: 11.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003722/0.7394, allocations: 1.948 MB / 0.489 GB, free: 9.297 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005824/0.7452, allocations: 5.375 MB / 0.4943 GB, free: 2.266 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009938/0.7552, allocations: 7.928 MB / 0.502 GB, free: 9.137 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001329/0.7554, allocations: 36 kB / 0.502 GB, free: 9.102 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01819/0.7736, allocations: 8.171 MB / 0.51 GB, free: 1.656 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001515/0.7738, allocations: 67.19 kB / 0.5101 GB, free: 1.594 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002489/0.774, allocations: 128 kB / 0.5102 GB, free: 1.469 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00428/0.7783, allocations: 1.296 MB / 0.5115 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004726/0.7831, allocations: 1.262 MB / 0.5127 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009412/0.7925, allocations: 6.544 MB / 0.5191 GB, free: 8.398 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004661/0.7972, allocations: 295.6 kB / 0.5194 GB, free: 8.109 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001318/0.7985, allocations: 343.9 kB / 0.5197 GB, free: 7.773 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 (685): * Single equations (assignments): 681 * 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.004699/0.8032, allocations: 1.82 MB / 0.5215 GB, free: 6.051 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009514/0.8042, allocations: 308 kB / 0.5218 GB, free: 5.746 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008795/0.813, allocations: 3.371 MB / 0.5251 GB, free: 2.359 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.023e-05/0.8131, allocations: 24 kB / 0.5251 GB, free: 2.336 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.118e-05/0.8131, allocations: 7.844 kB / 0.5251 GB, free: 2.332 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.098e-05/0.8131, allocations: 7.984 kB / 0.5251 GB, free: 2.324 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01735/0.8305, allocations: 7.605 MB / 0.5325 GB, free: 10.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/0.8305, allocations: 4 kB / 0.5325 GB, free: 10.65 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.8317, allocations: 239.7 kB / 0.5328 GB, free: 10.42 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003757/0.8354, allocations: 1.12 MB / 0.5339 GB, free: 9.293 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001984/0.8357, allocations: 26.34 kB / 0.5339 GB, free: 9.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008152/0.8438, allocations: 6.171 MB / 0.5399 GB, free: 2.965 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.8439, allocations: 0 / 0.5399 GB, free: 2.965 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2541/1.098, allocations: 5.699 MB / 0.5455 GB, free: 177.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002362/1.1, allocations: 0.5734 MB / 0.546 GB, free: 177.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006598/1.101, allocations: 24.7 kB / 0.5461 GB, free: 177.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001551/1.103, allocations: 91.42 kB / 0.5462 GB, free: 177.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003446/1.103, allocations: 90.77 kB / 0.5462 GB, free: 177.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001381/1.103, allocations: 46.28 kB / 0.5463 GB, free: 177.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005129/1.108, allocations: 2.159 MB / 0.5484 GB, free: 177.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.91e-07/1.108, allocations: 1.969 kB / 0.5484 GB, free: 177.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008123/1.116, allocations: 0.9167 MB / 0.5493 GB, free: 177.5 MB / 462.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.0006505/1.117, allocations: 168 kB / 0.5495 GB, free: 177.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01146/1.129, allocations: 5.549 MB / 0.5549 GB, free: 175.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.298e-06/1.129, allocations: 0 / 0.5549 GB, free: 175.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002423/1.131, allocations: 1.538 MB / 0.5564 GB, free: 175.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002876/1.134, allocations: 363.7 kB / 0.5567 GB, free: 175 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01675/1.151, allocations: 9.814 MB / 0.5663 GB, free: 170 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002476/1.153, allocations: 2.852 MB / 0.5691 GB, free: 168.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003862/1.157, allocations: 1.712 MB / 0.5708 GB, free: 168.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005557/1.158, allocations: 214.9 kB / 0.571 GB, free: 168.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.593e-06/1.158, allocations: 0 / 0.571 GB, free: 168.2 MB / 462.1 MB Notification: Performance of Templates: time 0.05838/1.216, allocations: 34.08 MB / 0.6042 GB, free: 136.3 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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