Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001461/0.001461, allocations: 196.4 kB / 8.535 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.2/1.2, allocations: 225.5 MB / 234.4 MB, free: 3.328 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009213/0.0009215, allocations: 91.91 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.224e-06/7.254e-06, allocations: 0 / 343.1 MB, free: 8.695 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0927/0.09272, allocations: 51.47 MB / 394.6 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2657/0.3585, allocations: 96.36 MB / 491 MB, free: 12.96 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/0.3588, allocations: 89.19 kB / 491.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2254/0.5843, allocations: 85.36 MB / 0.5629 GB, free: 12.46 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001776/0.5845, allocations: 76 kB / 0.563 GB, free: 12.39 MB / 442.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.009296/0.5938, allocations: 3.77 MB / 0.5667 GB, free: 8.559 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.5938, allocations: 8.031 kB / 0.5667 GB, free: 8.551 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01019/0.604, allocations: 1.964 MB / 0.5686 GB, free: 6.578 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01005/0.6141, allocations: 4.18 MB / 0.5727 GB, free: 2.332 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/0.6144, allocations: 132 kB / 0.5728 GB, free: 2.203 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001338/0.6157, allocations: 247.9 kB / 0.573 GB, free: 1.961 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.178/0.7937, allocations: 6.025 MB / 0.5789 GB, free: 64.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01039/0.8042, allocations: 9.197 MB / 0.5879 GB, free: 61.99 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001172/0.8043, allocations: 59.06 kB / 0.588 GB, free: 61.99 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004375/0.8048, allocations: 32.44 kB / 0.588 GB, free: 61.99 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001192/0.806, allocations: 1.078 MB / 0.5891 GB, free: 61.98 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03696/0.8429, allocations: 45.57 MB / 0.6336 GB, free: 48.13 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00178/0.8448, allocations: 1.759 MB / 0.6353 GB, free: 47.48 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008901/0.8457, allocations: 0.8857 MB / 0.6361 GB, free: 47.44 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005134/0.8508, allocations: 4.069 MB / 0.6401 GB, free: 45.5 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.8508, allocations: 45.22 kB / 0.6402 GB, free: 45.46 MB / 458.7 MB Notification: Performance of pre-optimization done (n=129): time 3.757e-06/0.8509, allocations: 3.656 kB / 0.6402 GB, free: 45.46 MB / 458.7 MB Notification: Performance of matching and sorting (n=141): time 0.01168/0.8625, allocations: 7.041 MB / 0.647 GB, free: 42.71 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.8626, allocations: 141.4 kB / 0.6472 GB, free: 42.55 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0034/0.866, allocations: 3.023 MB / 0.6501 GB, free: 42.23 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.783e-05/0.8661, allocations: 25.7 kB / 0.6501 GB, free: 42.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.8673, allocations: 2.951 MB / 0.653 GB, free: 40.3 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003865/0.8677, allocations: 0.5566 MB / 0.6536 GB, free: 39.99 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.8679, allocations: 3.281 kB / 0.6536 GB, free: 39.99 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000282/0.8682, allocations: 0.5545 MB / 0.6541 GB, free: 39.67 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001681/0.8698, allocations: 1.427 MB / 0.6555 GB, free: 39.66 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00308/0.8729, allocations: 5.28 MB / 0.6607 GB, free: 34.29 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003585/0.8765, allocations: 2.777 MB / 0.6634 GB, free: 33.35 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.545e-05/0.8766, allocations: 40.03 kB / 0.6634 GB, free: 33.35 MB / 458.7 MB Notification: Performance of matching and sorting (n=776) (initialization): time 0.00951/0.8862, allocations: 5.74 MB / 0.669 GB, free: 31.39 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.8862, allocations: 8.625 kB / 0.669 GB, free: 31.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001811/0.8864, allocations: 139.9 kB / 0.6692 GB, free: 31.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002312/0.8866, allocations: 201.8 kB / 0.6694 GB, free: 31.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004112/0.8907, allocations: 1.425 MB / 0.6707 GB, free: 31.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001831/0.8909, allocations: 275.8 kB / 0.671 GB, free: 31.15 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003988/0.8949, allocations: 242.7 kB / 0.6712 GB, free: 31.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004493/0.8954, allocations: 379.7 kB / 0.6716 GB, free: 31.08 MB / 458.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.0005742/0.896, allocations: 444.5 kB / 0.672 GB, free: 30.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003996/0.8964, allocations: 309 kB / 0.6723 GB, free: 30.54 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001576/0.898, allocations: 1.048 MB / 0.6733 GB, free: 30.15 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.651e-05/0.898, allocations: 12.41 kB / 0.6734 GB, free: 30.15 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.898, allocations: 4.844 kB / 0.6734 GB, free: 30.15 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.8981, allocations: 4.531 kB / 0.6734 GB, free: 30.15 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007057/0.9051, allocations: 4.495 MB / 0.6778 GB, free: 28.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.163e-05/0.9052, allocations: 20.28 kB / 0.6778 GB, free: 28.01 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009852/0.9062, allocations: 254.5 kB / 0.678 GB, free: 27.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.069e-05/0.9062, allocations: 32.17 kB / 0.678 GB, free: 27.98 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.133e-05/0.9063, allocations: 24.44 kB / 0.6781 GB, free: 27.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.557e-05/0.9063, allocations: 29.08 kB / 0.6781 GB, free: 27.98 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.746e-05/0.9063, allocations: 27.25 kB / 0.6781 GB, free: 27.97 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003568/0.9099, allocations: 4.689 MB / 0.6827 GB, free: 24.07 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009415/0.9109, allocations: 378.2 kB / 0.6831 GB, free: 23.79 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003526/0.9113, allocations: 24.27 kB / 0.6831 GB, free: 23.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/0.9125, allocations: 58.2 kB / 0.6831 GB, free: 23.78 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.9126, allocations: 116.2 kB / 0.6833 GB, free: 23.74 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.303e-05/0.9127, allocations: 58.69 kB / 0.6833 GB, free: 23.73 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.00305/0.9158, allocations: 2.006 MB / 0.6853 GB, free: 23.02 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005101/0.9209, allocations: 0.7333 MB / 0.686 GB, free: 23.02 MB / 458.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.000464/0.9214, allocations: 193.5 kB / 0.6862 GB, free: 22.88 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004677/0.9261, allocations: 3.316 MB / 0.6894 GB, free: 21.81 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.667e-06/0.9261, allocations: 3.344 kB / 0.6894 GB, free: 21.81 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007084/0.9268, allocations: 0.6524 MB / 0.69 GB, free: 21.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001719/0.9285, allocations: 340.3 kB / 0.6904 GB, free: 21.46 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01162/0.9402, allocations: 6.865 MB / 0.6971 GB, free: 18.55 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003537/0.9437, allocations: 3.429 MB / 0.7004 GB, free: 17.32 MB / 458.7 MB Notification: Performance of SimCode: time 7.91e-07/0.9438, allocations: 0 / 0.7004 GB, free: 17.32 MB / 458.7 MB Notification: Performance of Templates: time 0.05396/0.9977, allocations: 25.41 MB / 0.7252 GB, free: 6.594 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches