Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring",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.001838/0.001838, allocations: 205.8 kB / 8.544 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.199/1.199, allocations: 225.5 MB / 234.4 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008891/0.0008892, allocations: 92.89 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1686/0.1686, allocations: 45.14 MB / 383.3 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1866/0.3552, allocations: 69.37 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07994/0.4352, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2621/0.6974, allocations: 106.7 MB / 0.608 GB, free: 12.09 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001838/0.6976, allocations: 79.27 kB / 0.6081 GB, free: 12.05 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.2329/0.9305, allocations: 90.97 MB / 0.6969 GB, free: 9.449 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.9305, allocations: 12 kB / 0.697 GB, free: 9.438 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00907/0.9396, allocations: 1.971 MB / 0.6989 GB, free: 7.457 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009239/0.9489, allocations: 4.278 MB / 0.7031 GB, free: 3.113 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000148/0.949, allocations: 144 kB / 0.7032 GB, free: 2.973 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000654/0.9497, allocations: 255.9 kB / 0.7034 GB, free: 2.723 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009438/0.9591, allocations: 6.381 MB / 0.7097 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0134/0.9726, allocations: 9.669 MB / 0.7191 GB, free: 1.523 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00014/0.9727, allocations: 63.41 kB / 0.7192 GB, free: 1.461 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004642/0.9732, allocations: 32 kB / 0.7192 GB, free: 1.43 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00154/0.9748, allocations: 1.111 MB / 0.7203 GB, free: 324 kB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1751/1.15, allocations: 48.01 MB / 0.7672 GB, free: 166.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/1.152, allocations: 1.922 MB / 0.7691 GB, free: 166.1 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001115/1.153, allocations: 1.042 MB / 0.7701 GB, free: 166.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00615/1.159, allocations: 5.162 MB / 0.7751 GB, free: 163.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/1.159, allocations: 52.03 kB / 0.7752 GB, free: 163.6 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=148): time 3.867e-06/1.159, allocations: 5.672 kB / 0.7752 GB, free: 163.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=160): time 0.0138/1.173, allocations: 7.856 MB / 0.7828 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/1.173, allocations: 202.6 kB / 0.783 GB, free: 160.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003369/1.176, allocations: 3.088 MB / 0.7861 GB, free: 160.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.73e-05/1.177, allocations: 25.7 kB / 0.7861 GB, free: 160.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001029/1.178, allocations: 3.037 MB / 0.789 GB, free: 158.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003048/1.178, allocations: 0.612 MB / 0.7896 GB, free: 158 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001737/1.178, allocations: 3.625 kB / 0.7896 GB, free: 158 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002314/1.178, allocations: 0.5677 MB / 0.7902 GB, free: 157.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001734/1.18, allocations: 1.528 MB / 0.7917 GB, free: 157.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002831/1.183, allocations: 5.46 MB / 0.797 GB, free: 152.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002936/1.186, allocations: 2.907 MB / 0.7999 GB, free: 152.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.264e-05/1.186, allocations: 38.5 kB / 0.7999 GB, free: 152.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=811) (initialization): time 0.00756/1.193, allocations: 6.008 MB / 0.8058 GB, free: 152 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/1.193, allocations: 3.094 kB / 0.8058 GB, free: 152 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.76e-05/1.194, allocations: 147.9 kB / 0.8059 GB, free: 152 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000146/1.194, allocations: 208.3 kB / 0.8061 GB, free: 152 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004106/1.198, allocations: 1.481 MB / 0.8076 GB, free: 151.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000121/1.198, allocations: 277.7 kB / 0.8078 GB, free: 151.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003718/1.202, allocations: 254 kB / 0.8081 GB, free: 151.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003682/1.202, allocations: 386.9 kB / 0.8084 GB, free: 151.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 645 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (787): * Single equations (assignments): 784 * 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.0004872/1.203, allocations: 454.4 kB / 0.8089 GB, free: 151.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003387/1.203, allocations: 319.3 kB / 0.8092 GB, free: 151.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001653/1.205, allocations: 1.231 MB / 0.8104 GB, free: 151.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.185e-05/1.205, allocations: 14.72 kB / 0.8104 GB, free: 151.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/1.205, allocations: 0 / 0.8104 GB, free: 151.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/1.205, allocations: 7.359 kB / 0.8104 GB, free: 151.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006605/1.211, allocations: 4.804 MB / 0.8151 GB, free: 150.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.559e-05/1.211, allocations: 19.47 kB / 0.8151 GB, free: 150.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009786/1.212, allocations: 278.3 kB / 0.8154 GB, free: 150 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.106e-05/1.212, allocations: 27.41 kB / 0.8154 GB, free: 150 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.307e-05/1.212, allocations: 25.28 kB / 0.8154 GB, free: 150 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.609e-05/1.212, allocations: 40.17 kB / 0.8155 GB, free: 150 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.226e-05/1.212, allocations: 33.09 kB / 0.8155 GB, free: 150 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002906/1.215, allocations: 5.061 MB / 0.8204 GB, free: 146.5 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003557/1.219, allocations: 6.266 MB / 0.8265 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005171/1.219, allocations: 390.6 kB / 0.8269 GB, free: 141.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000367/1.22, allocations: 30.38 kB / 0.8269 GB, free: 141.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001299/1.221, allocations: 62.77 kB / 0.827 GB, free: 141.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/1.221, allocations: 125.8 kB / 0.8271 GB, free: 141.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.659e-05/1.221, allocations: 69.7 kB / 0.8272 GB, free: 141.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002292/1.224, allocations: 2.042 MB / 0.8292 GB, free: 140.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004926/1.229, allocations: 0.7755 MB / 0.8299 GB, free: 140.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 143 * 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.0003354/1.229, allocations: 176.7 kB / 0.8301 GB, free: 140.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004496/1.233, allocations: 3.498 MB / 0.8335 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.084e-06/1.233, allocations: 3.656 kB / 0.8335 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008243/1.234, allocations: 0.7152 MB / 0.8342 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/1.236, allocations: 355.2 kB / 0.8346 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/1.246, allocations: 7.173 MB / 0.8416 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003342/1.249, allocations: 3.543 MB / 0.845 GB, free: 129.1 MB / 0.5261 GB Notification: Performance of SimCode: time 5.31e-07/1.249, allocations: 0 / 0.845 GB, free: 129.1 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1)