Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001734/0.001735, allocations: 178.8 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.686/1.686, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008507/0.0008507, allocations: 90.3 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003052/0.0003052, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2743, allocations: 47.57 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.03567/0.31, allocations: 31.46 MB / 406 MB, free: 17.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02135/0.3314, allocations: 7.442 MB / 413.5 MB, free: 9.852 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00952/0.341, allocations: 147.6 kB / 413.6 MB, free: 9.707 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006144/0.3472, allocations: 1.578 MB / 415.2 MB, free: 8.121 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01799/0.3652, allocations: 4.829 MB / 420 MB, free: 3.273 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004456/0.3697, allocations: 0.5733 MB / 420.6 MB, free: 2.699 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008145/0.3779, allocations: 3.834 MB / 424.4 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009534/0.3875, allocations: 3.376 MB / 427.8 MB, free: 11.43 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00373/0.3913, allocations: 1.051 MB / 428.8 MB, free: 10.38 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004416/0.3957, allocations: 1.647 MB / 430.5 MB, free: 8.723 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001313/0.3971, allocations: 128 kB / 430.6 MB, free: 8.598 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003191/0.4003, allocations: 0.8738 MB / 431.5 MB, free: 7.723 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002148/0.4025, allocations: 1.402 MB / 432.9 MB, free: 6.316 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001506/0.404, allocations: 0.7025 MB / 433.6 MB, free: 5.605 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006846/0.4108, allocations: 4.494 MB / 438.1 MB, free: 1.102 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.4109, allocations: 0 / 438.1 MB, free: 1.102 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.867e-06/0.4109, allocations: 0 / 438.1 MB, free: 1.102 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001683/0.4111, allocations: 0 / 438.1 MB, free: 1.102 MB / 314.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.0104/0.4215, allocations: 3.435 MB / 441.5 MB, free: 13.6 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.381e-05/0.4216, allocations: 8.031 kB / 441.5 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0105/0.4321, allocations: 1.902 MB / 443.4 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006144/0.4383, allocations: 1.893 MB / 445.3 MB, free: 9.734 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002944/0.4386, allocations: 213.2 kB / 445.5 MB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001141/0.4398, allocations: 263.9 kB / 445.8 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02877/0.4685, allocations: 9.978 MB / 455.8 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001422/0.4688, allocations: 35.73 kB / 455.8 MB, free: 14.58 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005709/0.4693, allocations: 131.9 kB / 455.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004655/0.474, allocations: 1.864 MB / 457.8 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02196/0.496, allocations: 8.513 MB / 466.3 MB, free: 4.062 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2691/0.7651, allocations: 36.82 MB / 0.4913 GB, free: 100.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01008/0.7752, allocations: 3.868 MB / 0.4951 GB, free: 99.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003037/0.7783, allocations: 1.808 MB / 0.4969 GB, free: 99.95 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01115/0.7895, allocations: 7.535 MB / 0.5042 GB, free: 96.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.04e-05/0.7896, allocations: 54.47 kB / 0.5043 GB, free: 96.63 MB / 378.7 MB Notification: Performance of pre-optimization done (n=150): time 7.334e-06/0.7896, allocations: 0 / 0.5043 GB, free: 96.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=166): time 0.04785/0.8375, allocations: 17.38 MB / 0.5213 GB, free: 85.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.063e-05/0.8376, allocations: 145 kB / 0.5214 GB, free: 85.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00437/0.842, allocations: 3.462 MB / 0.5248 GB, free: 82.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002169/0.8422, allocations: 49.7 kB / 0.5248 GB, free: 82.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001384/0.8436, allocations: 2.74 MB / 0.5275 GB, free: 79.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006545/0.8443, allocations: 0.6392 MB / 0.5281 GB, free: 78.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000228/0.8445, allocations: 112 kB / 0.5282 GB, free: 78.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002563/0.8448, allocations: 0.5388 MB / 0.5288 GB, free: 78.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002623/0.8474, allocations: 1.928 MB / 0.5306 GB, free: 76.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00396/0.8514, allocations: 5.353 MB / 0.5359 GB, free: 69.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003579/0.855, allocations: 3.125 MB / 0.5389 GB, free: 66.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.103e-05/0.855, allocations: 36 kB / 0.539 GB, free: 66.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01272/0.8678, allocations: 8.129 MB / 0.5469 GB, free: 58.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.223e-05/0.8679, allocations: 56 kB / 0.547 GB, free: 58.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002294/0.8681, allocations: 120 kB / 0.5471 GB, free: 57.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003698/0.8718, allocations: 1.314 MB / 0.5484 GB, free: 56.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003601/0.8755, allocations: 1.263 MB / 0.5496 GB, free: 55.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007529/0.883, allocations: 6.098 MB / 0.5555 GB, free: 49.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004422/0.8875, allocations: 296.9 kB / 0.5558 GB, free: 48.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008249/0.8883, allocations: 345.6 kB / 0.5562 GB, free: 48.53 MB / 378.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 (685): * Single equations (assignments): 681 * 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.00336/0.8917, allocations: 1.815 MB / 0.5579 GB, free: 46.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007376/0.8924, allocations: 308 kB / 0.5582 GB, free: 46.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006582/0.899, allocations: 3.357 MB / 0.5615 GB, free: 43.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-05/0.8991, allocations: 26.95 kB / 0.5615 GB, free: 43.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/0.8991, allocations: 4 kB / 0.5615 GB, free: 43.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.8e-05/0.8991, allocations: 7.984 kB / 0.5615 GB, free: 43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01452/0.9136, allocations: 7.588 MB / 0.5689 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/0.9137, allocations: 0 / 0.5689 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/0.9148, allocations: 247.7 kB / 0.5692 GB, free: 35.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003411/0.9182, allocations: 1.124 MB / 0.5703 GB, free: 33.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002022/0.9184, allocations: 28 kB / 0.5703 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007076/0.9255, allocations: 5.725 MB / 0.5759 GB, free: 28.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.9256, allocations: 3.984 kB / 0.5759 GB, free: 28.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008906/0.9345, allocations: 5.688 MB / 0.5815 GB, free: 22.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0017/0.9362, allocations: 0.579 MB / 0.582 GB, free: 21.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008227/0.9371, allocations: 20 kB / 0.582 GB, free: 21.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001699/0.9388, allocations: 99.73 kB / 0.5821 GB, free: 21.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002209/0.939, allocations: 92.83 kB / 0.5822 GB, free: 21.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000118/0.9391, allocations: 49.39 kB / 0.5823 GB, free: 21.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003797/0.9429, allocations: 2.138 MB / 0.5844 GB, free: 19.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.943, allocations: 0 / 0.5844 GB, free: 19.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004886/0.9479, allocations: 0.9114 MB / 0.5852 GB, free: 18.5 MB / 378.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 (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.0004651/0.9483, allocations: 181.3 kB / 0.5854 GB, free: 18.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007186/0.9555, allocations: 4.75 MB / 0.5901 GB, free: 13.58 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.9555, allocations: 0 / 0.5901 GB, free: 13.58 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002112/0.9577, allocations: 1.539 MB / 0.5916 GB, free: 12.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002691/0.9604, allocations: 337.3 kB / 0.5919 GB, free: 11.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01717/0.9776, allocations: 9.908 MB / 0.6016 GB, free: 1.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003902/0.9815, allocations: 2.852 MB / 0.6043 GB, free: 14.87 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/0.9825, allocations: 263.4 kB / 0.6046 GB, free: 14.61 MB / 394.7 MB Notification: Performance of SimCode: time 1.052e-06/0.9825, allocations: 0 / 0.6046 GB, free: 14.61 MB / 394.7 MB Notification: Performance of Templates: time 0.3183/1.301, allocations: 65.25 MB / 0.6683 GB, free: 132.2 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches