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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002676/0.002681, allocations: 176.4 kB / 8.149 MB, free: 2.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.832/1.832, allocations: 205.2 MB / 213.8 MB, free: 13.87 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.001263/0.001262, allocations: 90.45 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.15e-05/1.151e-05, allocations: 4 kB / 314.3 MB, free: 9.023 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2369, allocations: 47.55 MB / 361.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1636/0.4006, allocations: 98.87 MB / 460.7 MB, free: 3.145 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003275/0.401, allocations: 90 kB / 460.8 MB, free: 3.059 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.4788/0.8798, allocations: 73 MB / 0.5213 GB, free: 96.65 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002108/0.8801, allocations: 72.66 kB / 0.5214 GB, free: 96.64 MB / 394.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.01387/0.894, allocations: 3.465 MB / 0.5247 GB, free: 95.06 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.894, allocations: 10.75 kB / 0.5248 GB, free: 95.06 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01694/0.911, allocations: 1.865 MB / 0.5266 GB, free: 94.79 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01582/0.9269, allocations: 3.978 MB / 0.5305 GB, free: 94.24 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002652/0.9272, allocations: 118.1 kB / 0.5306 GB, free: 94.24 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002235/0.9294, allocations: 209.9 kB / 0.5308 GB, free: 94.24 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0159/0.9454, allocations: 5.785 MB / 0.5364 GB, free: 93.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02546/0.9709, allocations: 8.72 MB / 0.5449 GB, free: 88.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002922/0.9713, allocations: 56.77 kB / 0.545 GB, free: 88.72 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00182/0.9731, allocations: 28.75 kB / 0.545 GB, free: 88.72 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002835/0.976, allocations: 1.052 MB / 0.546 GB, free: 88.55 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07027/1.046, allocations: 44.53 MB / 0.5895 GB, free: 46.72 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005613/1.052, allocations: 2.757 MB / 0.5922 GB, free: 43.82 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004007/1.056, allocations: 1.83 MB / 0.594 GB, free: 41.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01597/1.072, allocations: 6.022 MB / 0.5999 GB, free: 35.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.974e-05/1.072, allocations: 55.28 kB / 0.5999 GB, free: 35.69 MB / 394.7 MB Notification: Performance of pre-optimization done (n=151): time 6.953e-06/1.072, allocations: 0 / 0.5999 GB, free: 35.69 MB / 394.7 MB Notification: Performance of matching and sorting (n=166): time 0.05903/1.131, allocations: 14.12 MB / 0.6137 GB, free: 21.45 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/1.131, allocations: 145.5 kB / 0.6139 GB, free: 21.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006289/1.138, allocations: 2.654 MB / 0.6165 GB, free: 18.61 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005081/1.138, allocations: 25.7 kB / 0.6165 GB, free: 18.58 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002236/1.141, allocations: 2.649 MB / 0.6191 GB, free: 15.89 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001256/1.142, allocations: 0.6285 MB / 0.6197 GB, free: 15.25 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007949/1.143, allocations: 4.281 kB / 0.6197 GB, free: 15.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005098/1.143, allocations: 0.5505 MB / 0.6202 GB, free: 14.69 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005022/1.148, allocations: 1.854 MB / 0.622 GB, free: 12.82 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007286/1.156, allocations: 5.352 MB / 0.6273 GB, free: 5.695 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007078/1.163, allocations: 3.143 MB / 0.6303 GB, free: 2.555 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.825e-05/1.163, allocations: 36 kB / 0.6304 GB, free: 2.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=746) (initialization): time 0.02671/1.19, allocations: 7.259 MB / 0.6375 GB, free: 11.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/1.19, allocations: 4 kB / 0.6375 GB, free: 11.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002332/1.19, allocations: 128 kB / 0.6376 GB, free: 11.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008154/1.198, allocations: 1.195 MB / 0.6388 GB, free: 9.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00901/1.207, allocations: 1.298 MB / 0.64 GB, free: 8.629 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01717/1.224, allocations: 6.065 MB / 0.646 GB, free: 2.457 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005946/1.23, allocations: 191.7 kB / 0.6461 GB, free: 2.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001552/1.232, allocations: 348 kB / 0.6465 GB, free: 1.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 574 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (703): * Single equations (assignments): 699 * 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%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001485/1.234, allocations: 349.5 kB / 0.6468 GB, free: 1.578 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000883/1.234, allocations: 280.4 kB / 0.6471 GB, free: 1.301 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.169/1.403, allocations: 3.145 MB / 0.6501 GB, free: 138.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001221/1.404, allocations: 15.72 kB / 0.6502 GB, free: 138.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.038e-05/1.404, allocations: 3.906 kB / 0.6502 GB, free: 138.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.557e-05/1.404, allocations: 11.98 kB / 0.6502 GB, free: 138.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02423/1.428, allocations: 6.707 MB / 0.6567 GB, free: 138.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.114e-05/1.428, allocations: 0 / 0.6567 GB, free: 138.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002446/1.431, allocations: 226.4 kB / 0.6569 GB, free: 138.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007369/1.438, allocations: 1.026 MB / 0.6579 GB, free: 138.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004402/1.438, allocations: 3.406 kB / 0.6579 GB, free: 138.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0143/1.453, allocations: 5.379 MB / 0.6632 GB, free: 136.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/1.453, allocations: 6.734 kB / 0.6632 GB, free: 136.8 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01756/1.47, allocations: 5.588 MB / 0.6687 GB, free: 136.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002184/1.473, allocations: 0.5423 MB / 0.6692 GB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009652/1.474, allocations: 3.938 kB / 0.6692 GB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003062/1.477, allocations: 56.16 kB / 0.6692 GB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005911/1.477, allocations: 73.47 kB / 0.6693 GB, free: 136.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002132/1.478, allocations: 43.83 kB / 0.6694 GB, free: 136.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.004854/1.482, allocations: 1.752 MB / 0.6711 GB, free: 136.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006823/1.489, allocations: 0.7805 MB / 0.6718 GB, free: 136.1 MB / 410.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 () * 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.0008575/1.49, allocations: 155 kB / 0.672 GB, free: 136 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01162/1.502, allocations: 4.503 MB / 0.6764 GB, free: 135.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/1.502, allocations: 3.844 kB / 0.6764 GB, free: 135.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003943/1.506, allocations: 1.464 MB / 0.6778 GB, free: 135.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002687/1.509, allocations: 246.3 kB / 0.678 GB, free: 135 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02374/1.532, allocations: 7.024 MB / 0.6849 GB, free: 132.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008325/1.541, allocations: 3.178 MB / 0.688 GB, free: 131.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.834e-06/1.541, allocations: 0 / 0.688 GB, free: 131.4 MB / 410.7 MB Notification: Performance of Templates: time 0.1219/1.663, allocations: 63.21 MB / 0.7497 GB, free: 82.64 MB / 410.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/jenkins1/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