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.001141/0.001142, allocations: 94.86 kB / 16.3 MB, free: 5.992 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.001229/0.00123, allocations: 181.6 kB / 17.2 MB, free: 5.906 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.278/1.278, allocations: 223.2 MB / 241.1 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002726/0.0002727, allocations: 6.125 kB / 300.7 MB, free: 5.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0968/0.09709, allocations: 50.42 MB / 351.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.02678/0.1239, allocations: 29.69 MB / 380.8 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01499/0.1389, allocations: 7.732 MB / 388.6 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004755/0.1437, allocations: 143.6 kB / 388.7 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003604/0.1474, allocations: 1.431 MB / 390.1 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01006/0.1574, allocations: 4.34 MB / 394.5 MB, free: 272 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00161/0.1591, allocations: 0.5615 MB / 395 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002758/0.1618, allocations: 1.925 MB / 397 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00371/0.1656, allocations: 3.334 MB / 400.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009315/0.1665, allocations: 0.8604 MB / 401.2 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00125/0.1678, allocations: 1.191 MB / 402.3 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002307/0.168, allocations: 124 kB / 402.5 MB, free: 8.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001316/0.1693, allocations: 0.8504 MB / 403.3 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009566/0.1703, allocations: 1.305 MB / 404.6 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005118/0.1708, allocations: 0.7103 MB / 405.3 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003567/0.1744, allocations: 4.485 MB / 409.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.205e-06/0.1744, allocations: 0 / 409.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1744, allocations: 0 / 409.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.823e-05/0.1745, allocations: 0 / 409.8 MB, free: 0.832 MB / 334.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.005145/0.1796, allocations: 3.482 MB / 413.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.1797, allocations: 8.031 kB / 413.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007058/0.1867, allocations: 2.237 MB / 415.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003567/0.1903, allocations: 1.913 MB / 417.5 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001494/0.1905, allocations: 205.2 kB / 417.7 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004712/0.1909, allocations: 279.7 kB / 417.9 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2055/0.3965, allocations: 10.07 MB / 428 MB, free: 19.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.3966, allocations: 35.19 kB / 428 MB, free: 19.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003694/0.397, allocations: 133 kB / 428.2 MB, free: 19.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00327/0.4003, allocations: 1.856 MB / 430 MB, free: 19.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01975/0.42, allocations: 8.64 MB / 438.7 MB, free: 19.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03913/0.4592, allocations: 37.36 MB / 476 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01597/0.4752, allocations: 6.445 MB / 482.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01195/0.4872, allocations: 8.576 MB / 491 MB, free: 4.125 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/0.4873, allocations: 61.05 kB / 491.1 MB, free: 4.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=150): time 4.829e-06/0.4873, allocations: 0 / 491.1 MB, free: 4.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=166): time 0.06533/0.5527, allocations: 23.69 MB / 0.5027 GB, free: 15.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.342e-05/0.5528, allocations: 147.5 kB / 0.5029 GB, free: 15.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004625/0.5574, allocations: 3.583 MB / 0.5064 GB, free: 12.42 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002644/0.5577, allocations: 45.27 kB / 0.5064 GB, free: 12.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001747/0.5594, allocations: 2.726 MB / 0.5091 GB, free: 9.961 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005429/0.56, allocations: 0.6462 MB / 0.5097 GB, free: 9.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/0.5602, allocations: 112 kB / 0.5098 GB, free: 9.211 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002848/0.5605, allocations: 0.5376 MB / 0.5103 GB, free: 8.668 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002802/0.5633, allocations: 2.021 MB / 0.5123 GB, free: 6.641 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00473/0.568, allocations: 5.42 MB / 0.5176 GB, free: 15.56 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004328/0.5724, allocations: 3.211 MB / 0.5207 GB, free: 12.46 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.618e-05/0.5725, allocations: 36 kB / 0.5208 GB, free: 12.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01499/0.5875, allocations: 8.316 MB / 0.5289 GB, free: 4.844 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.785e-05/0.5876, allocations: 57.75 kB / 0.529 GB, free: 4.789 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001198/0.5877, allocations: 124 kB / 0.5291 GB, free: 4.668 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003976/0.5917, allocations: 1.308 MB / 0.5303 GB, free: 3.355 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003822/0.5955, allocations: 1.282 MB / 0.5316 GB, free: 2.188 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00865/0.6042, allocations: 6.261 MB / 0.5377 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004479/0.6087, allocations: 319.6 kB / 0.538 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008924/0.6096, allocations: 350.1 kB / 0.5384 GB, free: 11.2 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003443/0.6131, allocations: 1.801 MB / 0.5401 GB, free: 9.504 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006538/0.6138, allocations: 308.1 kB / 0.5404 GB, free: 9.199 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007321/0.6211, allocations: 3.59 MB / 0.5439 GB, free: 5.609 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4e-05/0.6212, allocations: 16 kB / 0.5439 GB, free: 5.594 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/0.6212, allocations: 12 kB / 0.5439 GB, free: 5.582 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.458e-05/0.6212, allocations: 11.92 kB / 0.5439 GB, free: 5.57 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01682/0.638, allocations: 7.972 MB / 0.5517 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.585e-05/0.6381, allocations: 4 kB / 0.5517 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.6394, allocations: 263 kB / 0.552 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003879/0.6433, allocations: 1.123 MB / 0.5531 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002323/0.6435, allocations: 28 kB / 0.5531 GB, free: 12.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008973/0.6525, allocations: 5.888 MB / 0.5589 GB, free: 6.164 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.6525, allocations: 0 / 0.5589 GB, free: 6.164 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01108/0.6636, allocations: 6.13 MB / 0.5648 GB, free: 4 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.6647, allocations: 361 kB / 0.5652 GB, free: 15.63 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00036/0.6651, allocations: 31.98 kB / 0.5652 GB, free: 15.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/0.6665, allocations: 113.6 kB / 0.5653 GB, free: 15.49 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002743/0.6668, allocations: 84.62 kB / 0.5654 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/0.6669, allocations: 47.98 kB / 0.5655 GB, free: 15.36 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003721/0.6707, allocations: 2.22 MB / 0.5676 GB, free: 13.15 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6707, allocations: 0 / 0.5676 GB, free: 13.15 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00501/0.6757, allocations: 0.9462 MB / 0.5685 GB, free: 12.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005501/0.6763, allocations: 186.1 kB / 0.5687 GB, free: 12.05 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008272/0.6845, allocations: 4.952 MB / 0.5736 GB, free: 7.207 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.6846, allocations: 0 / 0.5736 GB, free: 7.207 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002541/0.6871, allocations: 1.634 MB / 0.5752 GB, free: 5.566 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001807/0.689, allocations: 325.1 kB / 0.5755 GB, free: 5.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01631/0.7053, allocations: 9.65 MB / 0.5849 GB, free: 11.56 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002892/0.7082, allocations: 2.921 MB / 0.5877 GB, free: 8.605 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00424/0.7125, allocations: 1.738 MB / 0.5894 GB, free: 6.863 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006316/0.7131, allocations: 215.4 kB / 0.5896 GB, free: 6.656 MB / 478.1 MB Notification: Performance of SimCode: time 1.092e-06/0.7132, allocations: 0 / 0.5896 GB, free: 6.656 MB / 478.1 MB Notification: Performance of Templates: time 0.2662/0.9794, allocations: 32.71 MB / 0.6216 GB, free: 168.1 MB / 478.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","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches