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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001042/0.001042, allocations: 198.7 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.157/1.157, allocations: 225.5 MB / 234.4 MB, free: 3.352 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009007/0.0009006, allocations: 93.45 kB / 286.3 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09523/0.09616, allocations: 56.89 MB / 343.2 MB, free: 8.582 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08346/0.1796, allocations: 51.48 MB / 394.7 MB, free: 5.059 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2229/0.4026, allocations: 96.37 MB / 491.1 MB, free: 12.99 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002009/0.4029, allocations: 85.77 kB / 491.2 MB, free: 12.95 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.2213/0.6241, allocations: 89.21 MB / 0.5668 GB, free: 8.461 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.6242, allocations: 12 kB / 0.5668 GB, free: 8.449 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009722/0.6339, allocations: 1.968 MB / 0.5687 GB, free: 6.473 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009679/0.6436, allocations: 4.174 MB / 0.5728 GB, free: 2.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000152/0.6438, allocations: 132 kB / 0.5729 GB, free: 2.102 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008832/0.6447, allocations: 247.9 kB / 0.5731 GB, free: 1.859 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1237/0.7684, allocations: 6.032 MB / 0.579 GB, free: 130.7 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01022/0.7786, allocations: 9.191 MB / 0.588 GB, free: 127.9 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001197/0.7788, allocations: 60.25 kB / 0.5881 GB, free: 127.9 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004634/0.7793, allocations: 33.66 kB / 0.5881 GB, free: 127.9 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001123/0.7804, allocations: 1.07 MB / 0.5891 GB, free: 127.9 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03282/0.8132, allocations: 45.59 MB / 0.6337 GB, free: 97.85 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/0.8149, allocations: 1.753 MB / 0.6354 GB, free: 96.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008887/0.8158, allocations: 0.8873 MB / 0.6362 GB, free: 96.5 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004855/0.8207, allocations: 4.071 MB / 0.6402 GB, free: 93.95 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.8207, allocations: 48.72 kB / 0.6403 GB, free: 93.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=129): time 3.096e-06/0.8207, allocations: 0 / 0.6403 GB, free: 93.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.01155/0.8323, allocations: 7.03 MB / 0.6471 GB, free: 90.47 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.002e-05/0.8324, allocations: 144.6 kB / 0.6473 GB, free: 90.32 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003144/0.8355, allocations: 3.023 MB / 0.6502 GB, free: 89.24 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.408e-05/0.8356, allocations: 28.08 kB / 0.6502 GB, free: 89.21 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001008/0.8366, allocations: 2.944 MB / 0.6531 GB, free: 86.96 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002782/0.8369, allocations: 0.563 MB / 0.6537 GB, free: 86.55 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001567/0.837, allocations: 0 / 0.6537 GB, free: 86.55 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002402/0.8373, allocations: 0.5544 MB / 0.6542 GB, free: 86.14 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001628/0.8389, allocations: 1.434 MB / 0.6556 GB, free: 85.68 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002847/0.8418, allocations: 5.282 MB / 0.6608 GB, free: 79.96 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002795/0.8446, allocations: 2.781 MB / 0.6635 GB, free: 79 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.054e-05/0.8446, allocations: 38.75 kB / 0.6635 GB, free: 79 MB / 442.7 MB Notification: Performance of matching and sorting (n=776) (initialization): time 0.008007/0.8527, allocations: 5.742 MB / 0.6691 GB, free: 77.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.8527, allocations: 5.094 kB / 0.6691 GB, free: 77.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001457/0.8528, allocations: 140.5 kB / 0.6693 GB, free: 77.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002101/0.8531, allocations: 202.2 kB / 0.6695 GB, free: 77.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003999/0.8571, allocations: 1.428 MB / 0.6709 GB, free: 76.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001445/0.8572, allocations: 274.1 kB / 0.6711 GB, free: 76.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003656/0.8609, allocations: 237.6 kB / 0.6713 GB, free: 76.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003903/0.8613, allocations: 378.6 kB / 0.6717 GB, free: 76.73 MB / 442.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.0004809/0.8618, allocations: 448.3 kB / 0.6721 GB, free: 76.35 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003458/0.8621, allocations: 307.8 kB / 0.6724 GB, free: 76.18 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001474/0.8636, allocations: 1.049 MB / 0.6735 GB, free: 75.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.139e-05/0.8636, allocations: 12.75 kB / 0.6735 GB, free: 75.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.8637, allocations: 3.906 kB / 0.6735 GB, free: 75.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.8637, allocations: 7.172 kB / 0.6735 GB, free: 75.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005993/0.8697, allocations: 4.476 MB / 0.6778 GB, free: 73.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/0.8697, allocations: 19.23 kB / 0.6779 GB, free: 73.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009327/0.8707, allocations: 259.5 kB / 0.6781 GB, free: 73.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.06e-05/0.8707, allocations: 26.34 kB / 0.6781 GB, free: 73.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-05/0.8708, allocations: 22.59 kB / 0.6782 GB, free: 73.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.605e-05/0.8708, allocations: 34.42 kB / 0.6782 GB, free: 73.63 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.199e-05/0.8708, allocations: 27.06 kB / 0.6782 GB, free: 73.62 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002734/0.8735, allocations: 4.693 MB / 0.6828 GB, free: 69.72 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003435/0.877, allocations: 5.825 MB / 0.6885 GB, free: 65.18 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005127/0.8775, allocations: 376.4 kB / 0.6888 GB, free: 64.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003481/0.8779, allocations: 31.11 kB / 0.6889 GB, free: 64.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.8791, allocations: 59.86 kB / 0.6889 GB, free: 64.89 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.8792, allocations: 117.7 kB / 0.689 GB, free: 64.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.472e-05/0.8793, allocations: 57.34 kB / 0.6891 GB, free: 64.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.00229/0.8816, allocations: 2.007 MB / 0.6911 GB, free: 64.12 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004756/0.8864, allocations: 0.7425 MB / 0.6918 GB, free: 64.12 MB / 442.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.0003277/0.8867, allocations: 184.1 kB / 0.692 GB, free: 63.99 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003782/0.8905, allocations: 3.309 MB / 0.6952 GB, free: 62.92 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.8905, allocations: 3.938 kB / 0.6952 GB, free: 62.92 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006555/0.8912, allocations: 0.6597 MB / 0.6958 GB, free: 62.71 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001442/0.8926, allocations: 330.8 kB / 0.6962 GB, free: 62.57 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009791/0.9024, allocations: 6.874 MB / 0.7029 GB, free: 58.54 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003203/0.9057, allocations: 3.433 MB / 0.7062 GB, free: 55.87 MB / 442.7 MB Notification: Performance of SimCode: time 7.72e-07/0.9057, allocations: 7.938 kB / 0.7062 GB, free: 55.86 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)