Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009578/0.0009579, allocations: 181.2 kB / 8.516 MB, free: 1.852 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.157/1.157, allocations: 221.4 MB / 230.3 MB, free: 7.789 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.0009516/0.0009516, allocations: 99.66 kB / 281.2 MB, free: 5.52 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1592/0.1592, allocations: 44.15 MB / 376.1 MB, free: 3.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1701/0.3293, allocations: 68.03 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.4389, allocations: 61.9 MB / 0.4942 GB, free: 1.57 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2698/0.7087, allocations: 109.1 MB / 0.6007 GB, free: 3.613 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002069/0.709, allocations: 80.61 kB / 0.6008 GB, free: 3.535 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.5174/1.226, allocations: 142.8 MB / 0.7403 GB, free: 103 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/1.226, allocations: 13.91 kB / 0.7403 GB, free: 103 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01404/1.241, allocations: 2.979 MB / 0.7432 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01602/1.257, allocations: 7.155 MB / 0.7502 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003671/1.257, allocations: 248.5 kB / 0.7505 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002767/1.26, allocations: 451.7 kB / 0.7509 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01895/1.279, allocations: 11.12 MB / 0.7618 GB, free: 99.87 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03027/1.309, allocations: 16.16 MB / 0.7775 GB, free: 91.41 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005082/1.31, allocations: 93.75 kB / 0.7776 GB, free: 91.35 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002696/1.312, allocations: 47.31 kB / 0.7777 GB, free: 91.35 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003494/1.316, allocations: 1.914 MB / 0.7795 GB, free: 90.75 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07381/1.39, allocations: 76.16 MB / 0.8539 GB, free: 17.99 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00366/1.393, allocations: 2.745 MB / 0.8566 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002561/1.396, allocations: 1.923 MB / 0.8585 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01281/1.409, allocations: 8.533 MB / 0.8668 GB, free: 4.211 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002387/1.411, allocations: 1.843 MB / 0.8686 GB, free: 2.332 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=257): time 5.67e-06/1.411, allocations: 0 / 0.8686 GB, free: 2.332 MB / 0.4948 GB Notification: Performance of matching and sorting (n=283): time 0.03787/1.449, allocations: 15.34 MB / 0.8836 GB, free: 2.918 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.332e-05/1.449, allocations: 158.5 kB / 0.8837 GB, free: 2.73 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005851/1.455, allocations: 4.319 MB / 0.888 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003373/1.455, allocations: 25.98 kB / 0.888 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003927/1.459, allocations: 4.827 MB / 0.8927 GB, free: 9.492 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001123/1.46, allocations: 1.064 MB / 0.8937 GB, free: 8.414 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003093/1.461, allocations: 3.938 kB / 0.8937 GB, free: 8.41 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004731/1.461, allocations: 0.6987 MB / 0.8944 GB, free: 7.703 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003467/1.465, allocations: 2.365 MB / 0.8967 GB, free: 5.332 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1444/1.609, allocations: 7.997 MB / 0.9045 GB, free: 172.4 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005359/1.614, allocations: 4.336 MB / 0.9088 GB, free: 172.3 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-05/1.615, allocations: 56.81 kB / 0.9088 GB, free: 172.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1219) (initialization): time 0.01284/1.627, allocations: 9.048 MB / 0.9177 GB, free: 171.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/1.627, allocations: 3.562 kB / 0.9177 GB, free: 171.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000162/1.628, allocations: 204.8 kB / 0.9179 GB, free: 171.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002208/1.628, allocations: 298.7 kB / 0.9182 GB, free: 171.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006657/1.634, allocations: 2.279 MB / 0.9204 GB, free: 171.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001842/1.635, allocations: 401.2 kB / 0.9208 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00608/1.641, allocations: 390.5 kB / 0.9211 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007194/1.642, allocations: 0.5593 MB / 0.9217 GB, free: 171.5 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.000915/1.642, allocations: 0.6083 MB / 0.9223 GB, free: 171.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004822/1.643, allocations: 470.5 kB / 0.9227 GB, free: 171.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003635/1.647, allocations: 2.572 MB / 0.9252 GB, free: 171.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.016e-05/1.647, allocations: 31.28 kB / 0.9253 GB, free: 171.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.507e-06/1.647, allocations: 0 / 0.9253 GB, free: 171.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.286e-05/1.647, allocations: 16.25 kB / 0.9253 GB, free: 171.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01417/1.661, allocations: 9.828 MB / 0.9349 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.778e-05/1.661, allocations: 30.81 kB / 0.9349 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001986/1.663, allocations: 0.5222 MB / 0.9354 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-05/1.663, allocations: 44.53 kB / 0.9355 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001423/1.663, allocations: 49.69 kB / 0.9355 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.395e-05/1.663, allocations: 59.34 kB / 0.9356 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.42e-05/1.663, allocations: 45.75 kB / 0.9356 GB, free: 169.3 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005429/1.669, allocations: 8.99 MB / 0.9444 GB, free: 163.2 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00694/1.676, allocations: 10.74 MB / 0.9549 GB, free: 156.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/1.677, allocations: 0.5136 MB / 0.9554 GB, free: 155.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000541/1.677, allocations: 45.47 kB / 0.9554 GB, free: 155.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002028/1.679, allocations: 159.5 kB / 0.9556 GB, free: 155.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002628/1.679, allocations: 229.3 kB / 0.9558 GB, free: 155.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001459/1.68, allocations: 119.9 kB / 0.9559 GB, free: 155.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003419/1.683, allocations: 2.827 MB / 0.9587 GB, free: 154.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006701/1.69, allocations: 1.253 MB / 0.9599 GB, free: 154.6 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.0004903/1.69, allocations: 228.2 kB / 0.9601 GB, free: 154.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.006969/1.697, allocations: 5.418 MB / 0.9654 GB, free: 152.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-05/1.697, allocations: 3.75 kB / 0.9654 GB, free: 152.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002246/1.7, allocations: 1.473 MB / 0.9668 GB, free: 152.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002595/1.702, allocations: 0.5466 MB / 0.9674 GB, free: 151.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0198/1.722, allocations: 11.84 MB / 0.9789 GB, free: 147 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006746/1.729, allocations: 5.441 MB / 0.9842 GB, free: 143.8 MB / 0.5261 GB Notification: Performance of SimCode: time 8.11e-07/1.729, allocations: 0 / 0.9842 GB, free: 143.8 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Damper2_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Damper2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1)