Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.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.Damper2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Damper2",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.001078/0.001078, allocations: 203.4 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.211/1.211, allocations: 225.5 MB / 234.4 MB, free: 3.375 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008912/0.0008913, allocations: 96.53 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1833/0.1833, allocations: 45.15 MB / 383.4 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1878/0.3711, allocations: 69.36 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07978/0.4509, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2668/0.7177, allocations: 110 MB / 0.6113 GB, free: 9.09 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002069/0.718, allocations: 77.95 kB / 0.6114 GB, free: 9.051 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: 2609 * Number of variables: 2609 Notification: Performance of Generate backend data structure: time 0.5118/1.23, allocations: 146.7 MB / 0.7546 GB, free: 167.4 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/1.23, allocations: 9.188 kB / 0.7546 GB, free: 167.4 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01396/1.244, allocations: 2.985 MB / 0.7575 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01355/1.257, allocations: 6.362 MB / 0.7637 GB, free: 166.6 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003079/1.258, allocations: 258.1 kB / 0.764 GB, free: 166.6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002136/1.26, allocations: 443.1 kB / 0.7644 GB, free: 166.6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01515/1.275, allocations: 11.12 MB / 0.7753 GB, free: 166.6 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02078/1.296, allocations: 16.15 MB / 0.791 GB, free: 162.3 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002208/1.296, allocations: 93.61 kB / 0.7911 GB, free: 162.3 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009428/1.297, allocations: 53.25 kB / 0.7912 GB, free: 162.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002621/1.3, allocations: 1.916 MB / 0.793 GB, free: 162.3 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06432/1.364, allocations: 76.15 MB / 0.8674 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003223/1.367, allocations: 2.75 MB / 0.8701 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002314/1.37, allocations: 1.926 MB / 0.872 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01241/1.382, allocations: 8.538 MB / 0.8803 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002164/1.384, allocations: 1.851 MB / 0.8821 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=257): time 4.428e-06/1.384, allocations: 1.203 kB / 0.8821 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=283): time 0.03142/1.416, allocations: 15.34 MB / 0.8971 GB, free: 89.21 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/1.416, allocations: 158.5 kB / 0.8973 GB, free: 89.03 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004923/1.421, allocations: 4.317 MB / 0.9015 GB, free: 85.24 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002197/1.421, allocations: 32.89 kB / 0.9015 GB, free: 85.21 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002784/1.424, allocations: 4.829 MB / 0.9062 GB, free: 80.86 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007386/1.424, allocations: 1.06 MB / 0.9073 GB, free: 79.91 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003079/1.425, allocations: 4 kB / 0.9073 GB, free: 79.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003505/1.425, allocations: 0.6927 MB / 0.9079 GB, free: 79.31 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002983/1.428, allocations: 2.364 MB / 0.9102 GB, free: 77.18 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004569/1.433, allocations: 8.01 MB / 0.9181 GB, free: 66.88 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004736/1.437, allocations: 4.334 MB / 0.9223 GB, free: 63.18 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.194e-05/1.438, allocations: 56 kB / 0.9223 GB, free: 63.12 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1219) (initialization): time 0.01209/1.45, allocations: 9.038 MB / 0.9312 GB, free: 55.11 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/1.45, allocations: 8 kB / 0.9312 GB, free: 55.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001382/1.45, allocations: 200 kB / 0.9314 GB, free: 54.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002046/1.45, allocations: 307.8 kB / 0.9317 GB, free: 54.61 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006917/1.457, allocations: 2.279 MB / 0.9339 GB, free: 52.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002004/1.457, allocations: 400.5 kB / 0.9343 GB, free: 52.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006224/1.463, allocations: 392.5 kB / 0.9346 GB, free: 51.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007242/1.464, allocations: 0.5505 MB / 0.9352 GB, free: 51.39 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 924 * Number of states: 0 () * Number of discrete variables: 83 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],prismatic2.boxColor[3],prismatic2.boxColor[2],prismatic2.boxColor[1],damper2.color_b[3],damper2.color_b[2],damper2.color_b[1],damper2.color_a[3],damper2.color_a[2],damper2.color_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],force.connectionLineColor[3],force.connectionLineColor[2],force.connectionLineColor[1],force.forceArrow.arrowLine.twoHeadedArrow,force.forceArrow.headAtOrigin,force.forceColor[3],force.forceColor[2],force.forceColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[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 (1194): * Single equations (assignments): 1190 * Array equations: 3 * Algorithm blocks: 1 * 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.0008452/1.465, allocations: 0.6196 MB / 0.9358 GB, free: 50.77 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005237/1.466, allocations: 473.8 kB / 0.9362 GB, free: 50.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003917/1.469, allocations: 2.563 MB / 0.9387 GB, free: 48.11 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.122e-05/1.47, allocations: 28 kB / 0.9388 GB, free: 48.09 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/1.47, allocations: 0 / 0.9388 GB, free: 48.09 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.3e-05/1.47, allocations: 15.09 kB / 0.9388 GB, free: 48.09 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01405/1.484, allocations: 9.837 MB / 0.9484 GB, free: 39.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-05/1.484, allocations: 35.84 kB / 0.9484 GB, free: 39.47 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002074/1.486, allocations: 0.5176 MB / 0.9489 GB, free: 39.03 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.495e-05/1.486, allocations: 44 kB / 0.949 GB, free: 38.98 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001443/1.486, allocations: 48 kB / 0.949 GB, free: 38.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.636e-05/1.486, allocations: 63.06 kB / 0.9491 GB, free: 38.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.771e-05/1.486, allocations: 43.81 kB / 0.9491 GB, free: 38.84 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005543/1.492, allocations: 9 MB / 0.9579 GB, free: 29 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007227/1.499, allocations: 10.72 MB / 0.9684 GB, free: 17.54 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/1.5, allocations: 0.5175 MB / 0.9689 GB, free: 17.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006235/1.501, allocations: 50.88 kB / 0.9689 GB, free: 16.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002178/1.503, allocations: 157.5 kB / 0.9691 GB, free: 16.86 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002752/1.503, allocations: 232.2 kB / 0.9693 GB, free: 16.69 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001687/1.503, allocations: 115.9 kB / 0.9694 GB, free: 16.58 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003931/1.507, allocations: 2.827 MB / 0.9722 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007777/1.515, allocations: 1.256 MB / 0.9734 GB, free: 12.89 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 131 * Number of states: 7 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v,heatCapacitor.T,prismatic2.s,prismatic2.v) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (261): * Single equations (assignments): 256 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005367/1.515, allocations: 221.6 kB / 0.9736 GB, free: 12.68 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007482/1.523, allocations: 5.426 MB / 0.9789 GB, free: 7.699 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/1.523, allocations: 4 kB / 0.9789 GB, free: 7.695 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002216/1.525, allocations: 1.436 MB / 0.9803 GB, free: 6.383 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002655/1.528, allocations: 0.5451 MB / 0.9809 GB, free: 5.922 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1707/1.699, allocations: 11.83 MB / 0.9924 GB, free: 145.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006229/1.705, allocations: 5.437 MB / 0.9977 GB, free: 144.8 MB / 0.5261 GB Notification: Performance of SimCode: time 9.32e-07/1.705, allocations: 0 / 0.9977 GB, free: 144.8 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Damper2_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Damper2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1)