Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",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 3.2.3+maint.om/package.mo): time 0.0009996/0.0009995, allocations: 183.7 kB / 8.479 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.102/1.102, allocations: 205.2 MB / 214.1 MB, free: 5.516 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000946/0.0009458, allocations: 91.61 kB / 262.1 MB, free: 5.578 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1608/0.1617, allocations: 52.97 MB / 315.1 MB, free: 41.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06681/0.2286, allocations: 47.57 MB / 362.6 MB, free: 9.934 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2163/0.445, allocations: 96.99 MB / 459.6 MB, free: 7.16 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001902/0.4452, allocations: 87.27 kB / 459.7 MB, free: 7.148 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.5535/0.9987, allocations: 169 MB / 0.614 GB, free: 68.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.9988, allocations: 11.53 kB / 0.614 GB, free: 68.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05962/1.058, allocations: 16.12 MB / 0.6297 GB, free: 67.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0341/1.093, allocations: 13.94 MB / 0.6433 GB, free: 64.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004209/1.093, allocations: 244 kB / 0.6436 GB, free: 64.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003073/1.096, allocations: 472.2 kB / 0.644 GB, free: 63.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.017/1.113, allocations: 10.35 MB / 0.6541 GB, free: 53.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02562/1.139, allocations: 15.25 MB / 0.669 GB, free: 37.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005173/1.139, allocations: 119 kB / 0.6691 GB, free: 37.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002118/1.141, allocations: 44 kB / 0.6692 GB, free: 37.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002067/1.144, allocations: 1.67 MB / 0.6708 GB, free: 35.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2968/1.44, allocations: 75.6 MB / 0.7446 GB, free: 74.34 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005985/1.446, allocations: 5.633 MB / 0.7501 GB, free: 73.68 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004359/1.451, allocations: 4.556 MB / 0.7546 GB, free: 73.63 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01759/1.468, allocations: 14.12 MB / 0.7684 GB, free: 69.55 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.17e-05/1.469, allocations: 67.59 kB / 0.7684 GB, free: 69.52 MB / 426.8 MB Notification: Performance of pre-optimization done (n=293): time 5.651e-06/1.469, allocations: 0 / 0.7684 GB, free: 69.52 MB / 426.8 MB Notification: Performance of matching and sorting (n=366): time 0.08254/1.551, allocations: 33.91 MB / 0.8016 GB, free: 60.61 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.568e-05/1.551, allocations: 404.8 kB / 0.8019 GB, free: 60.16 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0095/1.561, allocations: 5.743 MB / 0.8076 GB, free: 58.2 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004506/1.561, allocations: 29.45 kB / 0.8076 GB, free: 58.17 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00195/1.563, allocations: 4.557 MB / 0.812 GB, free: 55.01 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001024/1.564, allocations: 1.299 MB / 0.8133 GB, free: 54.04 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003733/1.565, allocations: 2.219 kB / 0.8133 GB, free: 54.04 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0003417/1.565, allocations: 0.6767 MB / 0.814 GB, free: 53.57 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003941/1.569, allocations: 3.446 MB / 0.8173 GB, free: 52.33 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005453/1.574, allocations: 8.398 MB / 0.8255 GB, free: 44.44 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005609/1.58, allocations: 5.349 MB / 0.8307 GB, free: 42.72 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.372e-05/1.58, allocations: 48 kB / 0.8308 GB, free: 42.68 MB / 426.8 MB Notification: Performance of matching and sorting (n=1163) (initialization): time 0.02368/1.604, allocations: 13.78 MB / 0.8443 GB, free: 31.65 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/1.604, allocations: 4 kB / 0.8443 GB, free: 31.65 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/1.604, allocations: 176 kB / 0.8444 GB, free: 31.48 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01047/1.614, allocations: 3.615 MB / 0.848 GB, free: 28.75 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005899/1.62, allocations: 1.891 MB / 0.8498 GB, free: 27.09 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02684/1.647, allocations: 21.07 MB / 0.8704 GB, free: 8.41 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00724/1.654, allocations: 283.5 kB / 0.8707 GB, free: 8.168 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001321/1.656, allocations: 0.5019 MB / 0.8711 GB, free: 7.676 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 794 * Number of states: 0 () * Number of discrete variables: 72 (Rod3.color[3],Rod3.color[2],Rod3.color[1],Rod1.color[3],Rod1.color[2],Rod1.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1027): * Single equations (assignments): 1021 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(9,69.1%) 97,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001644/1.657, allocations: 0.5503 MB / 0.8717 GB, free: 7.125 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001257/1.659, allocations: 0.6518 MB / 0.8723 GB, free: 6.465 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1473/1.806, allocations: 8.537 MB / 0.8807 GB, free: 100.7 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-05/1.806, allocations: 35.06 kB / 0.8807 GB, free: 100.7 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.586e-05/1.806, allocations: 22.94 kB / 0.8807 GB, free: 100.7 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.822e-05/1.806, allocations: 18.41 kB / 0.8807 GB, free: 100.7 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03041/1.837, allocations: 17.91 MB / 0.8982 GB, free: 99.56 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.899e-05/1.837, allocations: 8.719 kB / 0.8982 GB, free: 99.56 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001988/1.839, allocations: 431.1 kB / 0.8986 GB, free: 99.56 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01004/1.849, allocations: 3.337 MB / 0.9019 GB, free: 99.53 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004371/1.849, allocations: 13.09 kB / 0.9019 GB, free: 99.53 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02687/1.876, allocations: 20.42 MB / 0.9218 GB, free: 95.72 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.119e-05/1.876, allocations: 21.78 kB / 0.9219 GB, free: 95.72 MB / 426.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02224/1.898, allocations: 14.71 MB / 0.9362 GB, free: 89.36 MB / 426.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02608/1.924, allocations: 19.27 MB / 0.955 GB, free: 80.89 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003279/1.928, allocations: 1.177 MB / 0.9562 GB, free: 80.29 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001823/1.93, allocations: 10.22 kB / 0.9562 GB, free: 80.29 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003637/1.933, allocations: 114.7 kB / 0.9563 GB, free: 80.29 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005534/1.934, allocations: 187.9 kB / 0.9565 GB, free: 80.25 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003614/1.934, allocations: 102.9 kB / 0.9566 GB, free: 80.23 MB / 426.8 MB Notification: Performance of sort global known variables: time 0.007281/1.942, allocations: 4.027 MB / 0.9605 GB, free: 78.84 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.01013/1.952, allocations: 1.703 MB / 0.9622 GB, free: 78.84 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 2 (Inertia.phi,Inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 237 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,64.1%) 93,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008933/1.953, allocations: 173.8 kB / 0.9623 GB, free: 78.75 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01371/1.966, allocations: 8.995 MB / 0.9711 GB, free: 75.39 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/1.966, allocations: 4 kB / 0.9711 GB, free: 75.39 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005918/1.972, allocations: 3.78 MB / 0.9748 GB, free: 72 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005416/1.978, allocations: 0.8479 MB / 0.9757 GB, free: 71.32 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03504/2.013, allocations: 15.53 MB / 0.9908 GB, free: 57.44 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01126/2.024, allocations: 6.322 MB / 0.997 GB, free: 52.75 MB / 426.8 MB Notification: Performance of SimCode: time 7.91e-07/2.024, allocations: 2.875 kB / 0.997 GB, free: 52.75 MB / 426.8 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1)