Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 180.7 kB / 8.132 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.162/1.162, allocations: 221.4 MB / 229.9 MB, free: 3.074 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009429/0.0009429, allocations: 110 kB / 280.8 MB, free: 1.332 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08961/0.09058, allocations: 55.83 MB / 336.6 MB, free: 9.477 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.2709, allocations: 50.38 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09453/0.3655, allocations: 95.71 MB / 482.7 MB, free: 7.035 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000222/0.3657, allocations: 95.86 kB / 482.8 MB, free: 6.941 MB / 362.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.3356/0.7014, allocations: 86.88 MB / 0.5563 GB, free: 52.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.7015, allocations: 16 kB / 0.5564 GB, free: 52.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009544/0.711, allocations: 1.968 MB / 0.5583 GB, free: 50.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01078/0.7218, allocations: 4.843 MB / 0.563 GB, free: 45.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001659/0.722, allocations: 132 kB / 0.5631 GB, free: 45.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001175/0.7232, allocations: 239.9 kB / 0.5634 GB, free: 45.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007704/0.7309, allocations: 6.04 MB / 0.5693 GB, free: 39.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009851/0.7408, allocations: 9.188 MB / 0.5782 GB, free: 28.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001235/0.7409, allocations: 71.39 kB / 0.5783 GB, free: 28.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004395/0.7414, allocations: 32 kB / 0.5783 GB, free: 28.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001136/0.7425, allocations: 1.068 MB / 0.5794 GB, free: 27.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03605/0.7786, allocations: 45.57 MB / 0.6239 GB, free: 12.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002142/0.7808, allocations: 1.769 MB / 0.6256 GB, free: 10.67 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001077/0.7819, allocations: 0.8863 MB / 0.6265 GB, free: 9.773 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005941/0.7878, allocations: 4.075 MB / 0.6304 GB, free: 5.422 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.7879, allocations: 47.16 kB / 0.6305 GB, free: 5.367 MB / 410.7 MB Notification: Performance of pre-optimization done (n=129): time 3.627e-06/0.7879, allocations: 4 kB / 0.6305 GB, free: 5.363 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.01367/0.8016, allocations: 7.016 MB / 0.6373 GB, free: 14.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/0.8017, allocations: 145.3 kB / 0.6375 GB, free: 14.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003874/0.8055, allocations: 3.021 MB / 0.6404 GB, free: 11.02 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001153/0.8057, allocations: 25.7 kB / 0.6405 GB, free: 10.99 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001579/0.8073, allocations: 2.953 MB / 0.6433 GB, free: 7.992 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004299/0.8077, allocations: 0.5556 MB / 0.6439 GB, free: 7.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.8079, allocations: 0 / 0.6439 GB, free: 7.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003013/0.8082, allocations: 0.5579 MB / 0.6444 GB, free: 6.863 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001866/0.81, allocations: 1.433 MB / 0.6458 GB, free: 5.418 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1117/0.9218, allocations: 5.279 MB / 0.651 GB, free: 130.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003258/0.9251, allocations: 2.769 MB / 0.6537 GB, free: 130.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.606e-05/0.9251, allocations: 40.16 kB / 0.6537 GB, free: 130.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=776) (initialization): time 0.007337/0.9325, allocations: 5.739 MB / 0.6593 GB, free: 130.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.9325, allocations: 7.156 kB / 0.6593 GB, free: 130.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000123/0.9327, allocations: 141 kB / 0.6595 GB, free: 130.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001529/0.9328, allocations: 202.6 kB / 0.6597 GB, free: 130.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003829/0.9366, allocations: 1.427 MB / 0.6611 GB, free: 130.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00012/0.9368, allocations: 274.5 kB / 0.6613 GB, free: 130.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003653/0.9404, allocations: 244.5 kB / 0.6616 GB, free: 130.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003721/0.9408, allocations: 371.6 kB / 0.6619 GB, free: 130.3 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.0004832/0.9413, allocations: 448 kB / 0.6623 GB, free: 130.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003534/0.9417, allocations: 306.7 kB / 0.6626 GB, free: 130.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001435/0.9431, allocations: 1.05 MB / 0.6637 GB, free: 130 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.218e-05/0.9432, allocations: 19.08 kB / 0.6637 GB, free: 130 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.535e-06/0.9432, allocations: 3.344 kB / 0.6637 GB, free: 130 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.9432, allocations: 6.953 kB / 0.6637 GB, free: 130 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00577/0.949, allocations: 4.466 MB / 0.668 GB, free: 129 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-05/0.949, allocations: 21.38 kB / 0.6681 GB, free: 129 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009049/0.9499, allocations: 264.5 kB / 0.6683 GB, free: 128.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.188e-05/0.95, allocations: 28.09 kB / 0.6683 GB, free: 128.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.82e-05/0.95, allocations: 26 kB / 0.6684 GB, free: 128.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.551e-05/0.95, allocations: 32.66 kB / 0.6684 GB, free: 128.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.175e-05/0.9501, allocations: 30.19 kB / 0.6684 GB, free: 128.9 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002726/0.9528, allocations: 4.683 MB / 0.673 GB, free: 125.9 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003466/0.9563, allocations: 5.837 MB / 0.6787 GB, free: 122.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006272/0.9569, allocations: 373.5 kB / 0.6791 GB, free: 122.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003532/0.9573, allocations: 29.8 kB / 0.6791 GB, free: 122.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/0.9586, allocations: 57.91 kB / 0.6791 GB, free: 122.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.9587, allocations: 117.6 kB / 0.6793 GB, free: 122.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.468e-05/0.9588, allocations: 60.47 kB / 0.6793 GB, free: 122.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.00257/0.9614, allocations: 2.003 MB / 0.6813 GB, free: 122 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004694/0.9661, allocations: 0.7439 MB / 0.682 GB, free: 122 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.0004059/0.9665, allocations: 183.3 kB / 0.6822 GB, free: 121.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004794/0.9713, allocations: 3.312 MB / 0.6854 GB, free: 121.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-05/0.9713, allocations: 3.875 kB / 0.6854 GB, free: 121.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007536/0.9721, allocations: 0.6654 MB / 0.6861 GB, free: 121.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001853/0.974, allocations: 341.1 kB / 0.6864 GB, free: 121.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01091/0.9849, allocations: 6.874 MB / 0.6931 GB, free: 119.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003666/0.9886, allocations: 3.435 MB / 0.6964 GB, free: 118.6 MB / 426.7 MB Notification: Performance of SimCode: time 8.72e-07/0.9886, allocations: 0 / 0.6964 GB, free: 118.6 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)