Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [: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.001689/0.001689, allocations: 180.1 kB / 8.48 MB, free: 1.883 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.146/1.146, allocations: 205.2 MB / 214.1 MB, free: 5.152 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008699/0.00087, allocations: 86.27 kB / 262.1 MB, free: 5.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1576/0.1585, allocations: 52.98 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0667/0.2253, allocations: 47.57 MB / 362.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2252/0.4505, allocations: 94.11 MB / 456.7 MB, free: 7.891 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002086/0.4507, allocations: 85.02 kB / 456.8 MB, free: 7.879 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.2337/0.6845, allocations: 85.97 MB / 0.5301 GB, free: 15.85 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.6845, allocations: 8 kB / 0.5301 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01058/0.6951, allocations: 1.972 MB / 0.532 GB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01322/0.7083, allocations: 5.133 MB / 0.537 GB, free: 8.656 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002406/0.7086, allocations: 140 kB / 0.5372 GB, free: 8.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001645/0.7103, allocations: 247.9 kB / 0.5374 GB, free: 8.277 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01107/0.7214, allocations: 6.033 MB / 0.5433 GB, free: 2.238 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01653/0.7379, allocations: 9.196 MB / 0.5523 GB, free: 7.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002303/0.7382, allocations: 63.34 kB / 0.5523 GB, free: 7.918 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001182/0.7394, allocations: 32 kB / 0.5524 GB, free: 7.887 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001679/0.7411, allocations: 1.076 MB / 0.5534 GB, free: 6.805 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1597/0.9008, allocations: 45.62 MB / 0.598 GB, free: 114.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002012/0.9029, allocations: 1.763 MB / 0.5997 GB, free: 113.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.9039, allocations: 0.8797 MB / 0.6005 GB, free: 113.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006/0.9099, allocations: 4.081 MB / 0.6045 GB, free: 112 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.91, allocations: 42.38 kB / 0.6046 GB, free: 111.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=129): time 4.068e-06/0.91, allocations: 0 / 0.6046 GB, free: 111.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.01385/0.9239, allocations: 7.153 MB / 0.6115 GB, free: 109.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.924, allocations: 147.9 kB / 0.6117 GB, free: 109 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00381/0.9278, allocations: 3.049 MB / 0.6147 GB, free: 108.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001663/0.928, allocations: 25.7 kB / 0.6147 GB, free: 108.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001228/0.9292, allocations: 2.952 MB / 0.6176 GB, free: 107 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004132/0.9296, allocations: 0.5605 MB / 0.6181 GB, free: 106.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002214/0.9299, allocations: 0 / 0.6181 GB, free: 106.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000244/0.9301, allocations: 0.5558 MB / 0.6187 GB, free: 106.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001758/0.9319, allocations: 1.434 MB / 0.6201 GB, free: 106.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00309/0.935, allocations: 5.277 MB / 0.6252 GB, free: 101.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003206/0.9382, allocations: 2.772 MB / 0.6279 GB, free: 101.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-05/0.9383, allocations: 42.78 kB / 0.628 GB, free: 101.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=776) (initialization): time 0.009241/0.9475, allocations: 5.745 MB / 0.6336 GB, free: 100.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.9476, allocations: 3.5 kB / 0.6336 GB, free: 100.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001481/0.9477, allocations: 140.1 kB / 0.6337 GB, free: 100.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001594/0.9479, allocations: 202.8 kB / 0.6339 GB, free: 100.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004765/0.9527, allocations: 1.431 MB / 0.6353 GB, free: 100.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00019/0.9529, allocations: 270 kB / 0.6356 GB, free: 100.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004642/0.9576, allocations: 243.1 kB / 0.6358 GB, free: 100.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006595/0.9582, allocations: 376.1 kB / 0.6362 GB, free: 100.5 MB / 426.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.0006973/0.9589, allocations: 442 kB / 0.6366 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004198/0.9594, allocations: 310.2 kB / 0.6369 GB, free: 100 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001553/0.9609, allocations: 1.06 MB / 0.6379 GB, free: 99.95 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.619e-05/0.961, allocations: 15.34 kB / 0.6379 GB, free: 99.95 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.961, allocations: 0 / 0.6379 GB, free: 99.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.961, allocations: 7.906 kB / 0.6379 GB, free: 99.95 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006273/0.9673, allocations: 4.487 MB / 0.6423 GB, free: 98.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/0.9673, allocations: 23.16 kB / 0.6423 GB, free: 98.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000949/0.9683, allocations: 254.4 kB / 0.6426 GB, free: 98.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.266e-05/0.9683, allocations: 27.19 kB / 0.6426 GB, free: 98.79 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-05/0.9684, allocations: 23.47 kB / 0.6426 GB, free: 98.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.662e-05/0.9684, allocations: 31.22 kB / 0.6427 GB, free: 98.78 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.181e-05/0.9684, allocations: 27.22 kB / 0.6427 GB, free: 98.77 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002811/0.9713, allocations: 4.711 MB / 0.6473 GB, free: 95.1 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003676/0.9749, allocations: 5.843 MB / 0.653 GB, free: 90.58 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008648/0.9758, allocations: 483.6 kB / 0.6534 GB, free: 90.26 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004666/0.9763, allocations: 28.7 kB / 0.6535 GB, free: 90.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001386/0.9777, allocations: 57.61 kB / 0.6535 GB, free: 90.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/0.9779, allocations: 126.7 kB / 0.6536 GB, free: 90.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.775e-05/0.978, allocations: 57.09 kB / 0.6537 GB, free: 90.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002746/0.9807, allocations: 2.023 MB / 0.6557 GB, free: 89.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005254/0.986, allocations: 0.7467 MB / 0.6564 GB, free: 89.47 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.0003817/0.9864, allocations: 183.5 kB / 0.6566 GB, free: 89.34 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004322/0.9907, allocations: 3.313 MB / 0.6598 GB, free: 88.28 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.297e-06/0.9907, allocations: 0.625 kB / 0.6598 GB, free: 88.28 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007453/0.9915, allocations: 0.6609 MB / 0.6605 GB, free: 88.06 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001782/0.9933, allocations: 332.3 kB / 0.6608 GB, free: 87.92 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/1.005, allocations: 6.898 MB / 0.6675 GB, free: 83.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003872/1.008, allocations: 3.446 MB / 0.6709 GB, free: 80.55 MB / 426.7 MB Notification: Performance of SimCode: time 9.32e-07/1.008, allocations: 0 / 0.6709 GB, free: 80.55 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)