Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [: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.003418/0.003418, allocations: 182.9 kB / 8.154 MB, free: 2.199 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.99/1.99, allocations: 205.2 MB / 213.8 MB, free: 13.91 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.001819/0.001819, allocations: 78.38 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.106e-05/1.131e-05, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3118, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2054/0.5173, allocations: 94.12 MB / 456 MB, free: 7.906 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003847/0.5178, allocations: 79.95 kB / 456 MB, free: 7.828 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.6987/1.216, allocations: 82.12 MB / 0.5255 GB, free: 94.73 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002884/1.217, allocations: 82.5 kB / 0.5256 GB, free: 94.72 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01773/1.235, allocations: 3.777 MB / 0.5293 GB, free: 92.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/1.235, allocations: 10.91 kB / 0.5293 GB, free: 92.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02599/1.261, allocations: 1.965 MB / 0.5312 GB, free: 92.67 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0259/1.287, allocations: 5.153 MB / 0.5363 GB, free: 91.94 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004832/1.287, allocations: 131 kB / 0.5364 GB, free: 91.94 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002893/1.29, allocations: 242.7 kB / 0.5366 GB, free: 91.94 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02375/1.314, allocations: 6.039 MB / 0.5425 GB, free: 90.09 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03324/1.347, allocations: 9.191 MB / 0.5515 GB, free: 84.92 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003666/1.348, allocations: 65.06 kB / 0.5516 GB, free: 84.88 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002354/1.35, allocations: 31.47 kB / 0.5516 GB, free: 84.88 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003418/1.353, allocations: 1.073 MB / 0.5526 GB, free: 84.39 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08996/1.443, allocations: 45.61 MB / 0.5972 GB, free: 38.87 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004661/1.448, allocations: 1.765 MB / 0.5989 GB, free: 36.96 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002805/1.451, allocations: 0.8855 MB / 0.5998 GB, free: 36.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01431/1.465, allocations: 4.09 MB / 0.6038 GB, free: 31.73 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.2e-05/1.466, allocations: 51.14 kB / 0.6038 GB, free: 31.67 MB / 394.7 MB Notification: Performance of pre-optimization done (n=129): time 7.665e-06/1.466, allocations: 4 kB / 0.6038 GB, free: 31.67 MB / 394.7 MB Notification: Performance of matching and sorting (n=141): time 0.03574/1.501, allocations: 7.154 MB / 0.6108 GB, free: 24.39 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.841e-05/1.501, allocations: 141.3 kB / 0.6109 GB, free: 24.22 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008877/1.51, allocations: 3.046 MB / 0.6139 GB, free: 21.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002998/1.511, allocations: 25.7 kB / 0.6139 GB, free: 21.15 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002213/1.513, allocations: 2.927 MB / 0.6168 GB, free: 18.18 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007693/1.514, allocations: 0.5633 MB / 0.6173 GB, free: 17.61 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005374/1.514, allocations: 0 / 0.6173 GB, free: 17.61 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003785/1.515, allocations: 0.5627 MB / 0.6179 GB, free: 17.04 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00352/1.518, allocations: 1.429 MB / 0.6193 GB, free: 15.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006164/1.524, allocations: 5.283 MB / 0.6244 GB, free: 8.352 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006162/1.531, allocations: 2.761 MB / 0.6271 GB, free: 5.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001062/1.531, allocations: 43.94 kB / 0.6272 GB, free: 5.547 MB / 394.7 MB Notification: Performance of matching and sorting (n=776) (initialization): time 0.0156/1.546, allocations: 5.659 MB / 0.6327 GB, free: 15.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/1.547, allocations: 4 kB / 0.6327 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002183/1.547, allocations: 148 kB / 0.6328 GB, free: 15.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003169/1.547, allocations: 203.9 kB / 0.633 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009279/1.556, allocations: 1.431 MB / 0.6344 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002874/1.557, allocations: 267 kB / 0.6347 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007065/1.564, allocations: 211.6 kB / 0.6349 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001248/1.565, allocations: 372 kB / 0.6353 GB, free: 13.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 636 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (752): * Single equations (assignments): 749 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009883/1.566, allocations: 373.3 kB / 0.6356 GB, free: 12.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008324/1.567, allocations: 308 kB / 0.6359 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003067/1.57, allocations: 1.053 MB / 0.6369 GB, free: 11.53 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.035e-05/1.57, allocations: 15.91 kB / 0.6369 GB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/1.57, allocations: 4 kB / 0.6369 GB, free: 11.51 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.139e-05/1.57, allocations: 11.91 kB / 0.637 GB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01286/1.583, allocations: 4.491 MB / 0.6413 GB, free: 6.758 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.139e-05/1.583, allocations: 16 kB / 0.6414 GB, free: 6.742 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002013/1.585, allocations: 259.6 kB / 0.6416 GB, free: 6.488 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.919e-05/1.585, allocations: 24 kB / 0.6416 GB, free: 6.465 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/1.585, allocations: 28 kB / 0.6417 GB, free: 6.438 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.422e-05/1.585, allocations: 31.61 kB / 0.6417 GB, free: 6.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-05/1.585, allocations: 27.88 kB / 0.6417 GB, free: 6.383 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006572/1.592, allocations: 4.698 MB / 0.6463 GB, free: 1.051 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001608/1.594, allocations: 484.8 kB / 0.6468 GB, free: 0.5547 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005639/1.594, allocations: 27.98 kB / 0.6468 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002735/1.597, allocations: 59.94 kB / 0.6468 GB, free: 480 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002392/1.597, allocations: 115.5 kB / 0.647 GB, free: 364 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001458/1.597, allocations: 67.98 kB / 0.647 GB, free: 296 kB / 410.7 MB Notification: Performance of sort global known variables: time 0.005153/1.603, allocations: 2.018 MB / 0.649 GB, free: 14.29 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006866/1.61, allocations: 0.7382 MB / 0.6497 GB, free: 13.55 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 73 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 130 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006793/1.61, allocations: 185.8 kB / 0.6499 GB, free: 13.36 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008808/1.619, allocations: 3.319 MB / 0.6531 GB, free: 10.08 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.63e-05/1.619, allocations: 4.875 kB / 0.6531 GB, free: 10.07 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001681/1.621, allocations: 0.6592 MB / 0.6538 GB, free: 9.418 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003028/1.624, allocations: 335 kB / 0.6541 GB, free: 9.09 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02292/1.647, allocations: 7.31 MB / 0.6612 GB, free: 1.488 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1584/1.805, allocations: 3.445 MB / 0.6646 GB, free: 149.3 MB / 426.7 MB Notification: Performance of SimCode: time 2.164e-06/1.805, allocations: 0 / 0.6646 GB, free: 149.3 MB / 426.7 MB Notification: Performance of Templates: time 0.1011/1.906, allocations: 47.85 MB / 0.7113 GB, free: 140.9 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches