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.001119/0.001119, allocations: 113.2 kB / 17.73 MB, free: 5.32 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.001137/0.001137, allocations: 188.2 kB / 18.66 MB, free: 4.395 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.34/1.34, allocations: 205.1 MB / 224.5 MB, free: 12.26 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.001157/0.001157, allocations: 51.92 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09578/0.09694, allocations: 46.62 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2023/0.2993, allocations: 10.32 MB / 385.5 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008063/0.3074, allocations: 3.867 MB / 389.3 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001346/0.3089, allocations: 56.56 kB / 389.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003679/0.3125, allocations: 2.077 MB / 391.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003835/0.3164, allocations: 1.68 MB / 393.1 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001538/0.3179, allocations: 0.6848 MB / 393.8 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004439/0.3224, allocations: 3.385 MB / 397.2 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002733/0.3251, allocations: 2.701 MB / 399.9 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001649/0.3268, allocations: 1.272 MB / 401.2 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001984/0.3288, allocations: 1.762 MB / 403 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004462/0.3293, allocations: 262.8 kB / 403.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00195/0.3312, allocations: 1.118 MB / 404.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001339/0.3326, allocations: 1.58 MB / 405.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00164/0.3342, allocations: 1.867 MB / 407.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00605/0.3403, allocations: 5.946 MB / 413.7 MB, free: 8.625 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3403, allocations: 0 / 413.7 MB, free: 8.625 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3403, allocations: 0 / 413.7 MB, free: 8.625 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001252/0.3404, allocations: 0 / 413.7 MB, free: 8.625 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.00869/0.3491, allocations: 4.132 MB / 417.9 MB, free: 4.691 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.3492, allocations: 8.031 kB / 417.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006536/0.3557, allocations: 1.864 MB / 419.7 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004227/0.36, allocations: 1.956 MB / 421.7 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001521/0.3602, allocations: 213.2 kB / 421.9 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004889/0.3607, allocations: 271.8 kB / 422.2 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01927/0.3799, allocations: 9.973 MB / 432.1 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001018/0.3801, allocations: 47.59 kB / 432.2 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003854/0.3805, allocations: 131.9 kB / 432.3 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003097/0.3836, allocations: 1.856 MB / 434.2 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01788/0.4015, allocations: 8.532 MB / 442.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04662/0.4481, allocations: 36.7 MB / 479.4 MB, free: 5.359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009678/0.4579, allocations: 3.877 MB / 483.3 MB, free: 1.281 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002602/0.4605, allocations: 1.81 MB / 485.1 MB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01178/0.4723, allocations: 7.516 MB / 492.6 MB, free: 7.668 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.799e-05/0.4724, allocations: 55.5 kB / 492.6 MB, free: 7.605 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 6.492e-06/0.4724, allocations: 7.984 kB / 492.7 MB, free: 7.598 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.05766/0.5301, allocations: 17.45 MB / 0.4982 GB, free: 6.023 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.5302, allocations: 149.5 kB / 0.4983 GB, free: 5.844 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008636/0.5389, allocations: 3.481 MB / 0.5017 GB, free: 2.359 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005811/0.5395, allocations: 53.64 kB / 0.5017 GB, free: 2.301 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002487/0.542, allocations: 2.74 MB / 0.5044 GB, free: 15.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00107/0.5431, allocations: 0.6442 MB / 0.505 GB, free: 14.87 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002832/0.5459, allocations: 1.115 MB / 0.5061 GB, free: 13.74 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.5461, allocations: 301.4 kB / 0.5064 GB, free: 13.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003482/0.5496, allocations: 1.951 MB / 0.5083 GB, free: 11.49 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006277/0.5559, allocations: 5.37 MB / 0.5136 GB, free: 4.402 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01033/0.5662, allocations: 7.943 MB / 0.5213 GB, free: 10.76 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001419/0.5664, allocations: 36 kB / 0.5214 GB, free: 10.72 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.0204/0.5868, allocations: 8.17 MB / 0.5293 GB, free: 2.539 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001984/0.5871, allocations: 56 kB / 0.5294 GB, free: 2.484 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003533/0.5874, allocations: 124 kB / 0.5295 GB, free: 2.363 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004556/0.592, allocations: 1.304 MB / 0.5308 GB, free: 1.059 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004809/0.5969, allocations: 1.263 MB / 0.532 GB, free: 15.79 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/0.6069, allocations: 6.531 MB / 0.5384 GB, free: 9.121 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004939/0.6119, allocations: 307.5 kB / 0.5387 GB, free: 8.82 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001266/0.6132, allocations: 340 kB / 0.539 GB, free: 8.488 MB / 478.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.004765/0.618, allocations: 1.814 MB / 0.5408 GB, free: 6.66 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009057/0.6189, allocations: 300.1 kB / 0.5411 GB, free: 6.363 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008436/0.6274, allocations: 3.369 MB / 0.5444 GB, free: 2.977 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.292e-05/0.6274, allocations: 16 kB / 0.5444 GB, free: 2.961 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.979e-05/0.6275, allocations: 8 kB / 0.5444 GB, free: 2.953 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.623e-05/0.6275, allocations: 11.91 kB / 0.5444 GB, free: 2.941 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2329/0.8604, allocations: 7.578 MB / 0.5518 GB, free: 149.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.962e-05/0.8605, allocations: 2.281 kB / 0.5518 GB, free: 149.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00124/0.8617, allocations: 239.6 kB / 0.552 GB, free: 149.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004026/0.8658, allocations: 1.121 MB / 0.5531 GB, free: 149.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000268/0.866, allocations: 28.3 kB / 0.5532 GB, free: 149.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008689/0.8747, allocations: 6.167 MB / 0.5592 GB, free: 146.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.8748, allocations: 1.094 kB / 0.5592 GB, free: 146.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009788/0.8846, allocations: 5.71 MB / 0.5648 GB, free: 144.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001642/0.8862, allocations: 0.5762 MB / 0.5653 GB, free: 144 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005247/0.8868, allocations: 27.91 kB / 0.5653 GB, free: 144 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001344/0.8881, allocations: 87.77 kB / 0.5654 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003238/0.8885, allocations: 88.47 kB / 0.5655 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001448/0.8886, allocations: 45.66 kB / 0.5656 GB, free: 143.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004179/0.8928, allocations: 2.16 MB / 0.5677 GB, free: 143.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.8928, allocations: 3.375 kB / 0.5677 GB, free: 143.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006721/0.8996, allocations: 0.9113 MB / 0.5686 GB, free: 143.1 MB / 478.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.0006149/0.9002, allocations: 162.5 kB / 0.5687 GB, free: 143 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007744/0.908, allocations: 4.795 MB / 0.5734 GB, free: 141.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.908, allocations: 3.969 kB / 0.5734 GB, free: 141.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002994/0.911, allocations: 1.538 MB / 0.5749 GB, free: 140.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003252/0.9143, allocations: 361.8 kB / 0.5752 GB, free: 140.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01593/0.9302, allocations: 8.021 MB / 0.5831 GB, free: 136.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002204/0.9325, allocations: 2.849 MB / 0.5859 GB, free: 134.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003338/0.9358, allocations: 1.71 MB / 0.5875 GB, free: 133.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007359/0.9366, allocations: 215.4 kB / 0.5877 GB, free: 133 MB / 478.1 MB Notification: Performance of SimCode: time 1.313e-06/0.9366, allocations: 0 / 0.5877 GB, free: 133 MB / 478.1 MB Notification: Performance of Templates: time 0.05573/0.9924, allocations: 31.15 MB / 0.6182 GB, free: 101.9 MB / 478.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches