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) 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 4.0.0+maint.om/package.mo", uses=false) 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: 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_4.0.0_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_4.0.0_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.001094/0.001094, allocations: 105.4 kB / 16.62 MB, free: 6.809 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.0009972/0.0009972, allocations: 193.9 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009792/0.0009792, allocations: 42.03 kB / 300.1 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09362/0.09461, allocations: 49.46 MB / 349.6 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2145/0.3091, allocations: 34.73 MB / 384.3 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01797/0.3272, allocations: 7.818 MB / 392.1 MB, free: 3.238 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007939/0.3351, allocations: 145.7 kB / 392.3 MB, free: 3.215 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004146/0.3393, allocations: 1.986 MB / 394.3 MB, free: 2.316 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004748/0.3441, allocations: 1.529 MB / 395.8 MB, free: 1.668 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001552/0.3457, allocations: 0.6509 MB / 396.4 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004194/0.3499, allocations: 3.388 MB / 399.8 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00331/0.3532, allocations: 2.836 MB / 402.7 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001792/0.355, allocations: 1.277 MB / 403.9 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002247/0.3573, allocations: 1.942 MB / 405.9 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000429/0.3577, allocations: 263.4 kB / 406.1 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001951/0.3597, allocations: 1.144 MB / 407.3 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001324/0.361, allocations: 1.597 MB / 408.9 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001623/0.3626, allocations: 1.887 MB / 410.8 MB, free: 7.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005709/0.3684, allocations: 5.771 MB / 416.5 MB, free: 1.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3684, allocations: 4 kB / 416.5 MB, free: 1.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3684, allocations: 0 / 416.5 MB, free: 1.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001006/0.3685, allocations: 0 / 416.5 MB, free: 1.766 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.007308/0.3758, allocations: 4.126 MB / 420.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.3759, allocations: 12.03 kB / 420.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006297/0.3822, allocations: 1.856 MB / 422.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003117/0.3853, allocations: 1.882 MB / 424.4 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001499/0.3855, allocations: 213.1 kB / 424.6 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004441/0.3859, allocations: 263.9 kB / 424.9 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01765/0.4036, allocations: 9.973 MB / 434.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/0.4037, allocations: 43.67 kB / 434.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003605/0.4041, allocations: 131.9 kB / 435 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003095/0.4072, allocations: 1.86 MB / 436.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01919/0.4264, allocations: 8.532 MB / 445.4 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04531/0.4717, allocations: 36.85 MB / 482.3 MB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009842/0.4816, allocations: 3.875 MB / 486.1 MB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002432/0.4841, allocations: 1.814 MB / 488 MB, free: 8.289 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01082/0.4949, allocations: 7.523 MB / 495.5 MB, free: 496 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.495, allocations: 51.5 kB / 495.5 MB, free: 436 kB / 398.1 MB Notification: Performance of pre-optimization done (n=150): time 5.33e-06/0.495, allocations: 3.984 kB / 495.5 MB, free: 432 kB / 398.1 MB Notification: Performance of matching and sorting (n=166): time 0.05431/0.5493, allocations: 17.42 MB / 0.5009 GB, free: 14.88 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.955e-05/0.5494, allocations: 153.5 kB / 0.5011 GB, free: 14.7 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004522/0.554, allocations: 3.473 MB / 0.5045 GB, free: 11.22 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002114/0.5542, allocations: 45.7 kB / 0.5045 GB, free: 11.17 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001641/0.5558, allocations: 2.732 MB / 0.5072 GB, free: 8.398 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006024/0.5564, allocations: 0.648 MB / 0.5078 GB, free: 7.742 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001408/0.5579, allocations: 1.115 MB / 0.5089 GB, free: 6.617 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.558, allocations: 305.1 kB / 0.5092 GB, free: 6.316 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002781/0.5608, allocations: 1.951 MB / 0.5111 GB, free: 4.359 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005618/0.5664, allocations: 5.37 MB / 0.5163 GB, free: 13.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009409/0.5758, allocations: 7.932 MB / 0.5241 GB, free: 3.645 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.95e-05/0.5759, allocations: 39.94 kB / 0.5241 GB, free: 3.605 MB / 446.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.1698/0.7457, allocations: 8.161 MB / 0.5321 GB, free: 146.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.984e-05/0.7458, allocations: 57.81 kB / 0.5322 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001342/0.746, allocations: 122 kB / 0.5323 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004138/0.7501, allocations: 1.302 MB / 0.5335 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003771/0.7539, allocations: 1.264 MB / 0.5348 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008659/0.7626, allocations: 6.551 MB / 0.5412 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003838/0.7664, allocations: 300.1 kB / 0.5415 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005174/0.7669, allocations: 345.5 kB / 0.5418 GB, free: 143.6 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.002453/0.7694, allocations: 1.808 MB / 0.5436 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006337/0.77, allocations: 311.2 kB / 0.5439 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006302/0.7764, allocations: 3.364 MB / 0.5471 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.428e-05/0.7764, allocations: 19.81 kB / 0.5472 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.7764, allocations: 3.938 kB / 0.5472 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.7764, allocations: 7.5 kB / 0.5472 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01136/0.7878, allocations: 7.604 MB / 0.5546 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.7878, allocations: 0 / 0.5546 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009655/0.7888, allocations: 238.4 kB / 0.5548 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003308/0.7921, allocations: 1.13 MB / 0.5559 GB, free: 138.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001111/0.7922, allocations: 33.3 kB / 0.556 GB, free: 138.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006658/0.7989, allocations: 6.16 MB / 0.562 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.7989, allocations: 3.938 kB / 0.562 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007746/0.8067, allocations: 5.71 MB / 0.5676 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005647/0.8072, allocations: 353 kB / 0.5679 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003275/0.8076, allocations: 29.58 kB / 0.5679 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/0.8088, allocations: 95.17 kB / 0.568 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002341/0.809, allocations: 84.89 kB / 0.5681 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.8091, allocations: 43.98 kB / 0.5681 GB, free: 127.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002299/0.8114, allocations: 2.147 MB / 0.5702 GB, free: 125.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8115, allocations: 3.938 kB / 0.5702 GB, free: 125.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003752/0.8152, allocations: 0.9192 MB / 0.5711 GB, free: 124.8 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.0003476/0.8156, allocations: 172.6 kB / 0.5713 GB, free: 124.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00682/0.8224, allocations: 5.543 MB / 0.5767 GB, free: 119.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.8224, allocations: 3.938 kB / 0.5767 GB, free: 119.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001756/0.8242, allocations: 1.534 MB / 0.5782 GB, free: 117.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001728/0.8259, allocations: 352.3 kB / 0.5785 GB, free: 117.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.8361, allocations: 9.804 MB / 0.5881 GB, free: 107.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002012/0.8381, allocations: 2.855 MB / 0.5909 GB, free: 104.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00324/0.8414, allocations: 1.696 MB / 0.5926 GB, free: 102.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004854/0.8419, allocations: 219.4 kB / 0.5928 GB, free: 102.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.002e-06/0.8419, allocations: 0 / 0.5928 GB, free: 102.7 MB / 446.1 MB Notification: Performance of Templates: time 0.04426/0.8862, allocations: 34.04 MB / 0.626 GB, free: 68.82 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches