Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",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.002022/0.002022, allocations: 175.1 kB / 8.476 MB, free: 1.883 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.146/1.146, allocations: 205.2 MB / 214.1 MB, free: 5.16 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.00096/0.0009602, allocations: 82.27 kB / 262.1 MB, free: 5.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1493/0.1504, allocations: 52.98 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06278/0.2131, allocations: 47.57 MB / 362.6 MB, free: 9.887 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2178/0.4309, allocations: 95.47 MB / 458.1 MB, free: 7.629 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.4312, allocations: 83.67 kB / 458.2 MB, free: 7.617 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.5328/0.964, allocations: 163.7 MB / 0.6073 GB, free: 66.33 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.964, allocations: 11.27 kB / 0.6073 GB, free: 66.33 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05954/1.024, allocations: 16.05 MB / 0.623 GB, free: 65.74 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03032/1.054, allocations: 13.66 MB / 0.6363 GB, free: 64.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004235/1.054, allocations: 228.5 kB / 0.6365 GB, free: 64.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002815/1.057, allocations: 451 kB / 0.637 GB, free: 64.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0166/1.074, allocations: 9.948 MB / 0.6467 GB, free: 58.11 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02307/1.097, allocations: 14.75 MB / 0.6611 GB, free: 44.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003576/1.097, allocations: 106.4 kB / 0.6612 GB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009768/1.098, allocations: 44 kB / 0.6612 GB, free: 44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001795/1.1, allocations: 1.625 MB / 0.6628 GB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2985/1.399, allocations: 74.27 MB / 0.7353 GB, free: 75.38 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005697/1.404, allocations: 5.581 MB / 0.7408 GB, free: 74.72 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004428/1.409, allocations: 4.607 MB / 0.7453 GB, free: 74.68 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01751/1.426, allocations: 13.75 MB / 0.7587 GB, free: 71.12 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/1.426, allocations: 64.69 kB / 0.7588 GB, free: 71.08 MB / 426.8 MB Notification: Performance of pre-optimization done (n=280): time 5.871e-06/1.426, allocations: 2.188 kB / 0.7588 GB, free: 71.08 MB / 426.8 MB Notification: Performance of matching and sorting (n=340): time 0.08963/1.516, allocations: 35.35 MB / 0.7933 GB, free: 63.12 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.185e-05/1.516, allocations: 397.8 kB / 0.7937 GB, free: 62.68 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007178/1.523, allocations: 5.564 MB / 0.7991 GB, free: 60.76 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004275/1.524, allocations: 26.73 kB / 0.7991 GB, free: 60.73 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001974/1.526, allocations: 4.388 MB / 0.8034 GB, free: 57.74 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009574/1.527, allocations: 1.206 MB / 0.8046 GB, free: 56.83 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000387/1.527, allocations: 0 / 0.8046 GB, free: 56.83 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0003367/1.528, allocations: 0.6582 MB / 0.8052 GB, free: 56.38 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004187/1.532, allocations: 3.727 MB / 0.8089 GB, free: 54.98 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005543/1.537, allocations: 8.493 MB / 0.8172 GB, free: 47.18 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005955/1.543, allocations: 5.55 MB / 0.8226 GB, free: 45.31 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-05/1.543, allocations: 48 kB / 0.8226 GB, free: 45.27 MB / 426.8 MB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.0293/1.573, allocations: 15.34 MB / 0.8376 GB, free: 33.22 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/1.573, allocations: 8 kB / 0.8376 GB, free: 33.21 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001284/1.573, allocations: 164 kB / 0.8378 GB, free: 33.05 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01627/1.589, allocations: 5 MB / 0.8427 GB, free: 29.49 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006263/1.595, allocations: 1.817 MB / 0.8445 GB, free: 27.9 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03077/1.626, allocations: 24.85 MB / 0.8687 GB, free: 6.031 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007419/1.634, allocations: 300.7 kB / 0.869 GB, free: 5.785 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001269/1.635, allocations: 494.2 kB / 0.8695 GB, free: 5.309 MB / 426.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: B1.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 764 * Number of states: 0 () * Number of discrete variables: 66 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (972): * Single equations (assignments): 966 * 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 {(7,55.1%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.00124/1.636, allocations: 0.5426 MB / 0.87 GB, free: 4.766 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001028/1.637, allocations: 0.6209 MB / 0.8706 GB, free: 4.137 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1549/1.792, allocations: 10.85 MB / 0.8812 GB, free: 103 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.705e-05/1.792, allocations: 34.38 kB / 0.8812 GB, free: 103 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.128e-05/1.792, allocations: 18.25 kB / 0.8813 GB, free: 103 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.933e-05/1.792, allocations: 19.36 kB / 0.8813 GB, free: 103 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04133/1.834, allocations: 22.29 MB / 0.903 GB, free: 100.3 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.599e-05/1.834, allocations: 11.61 kB / 0.9031 GB, free: 100.3 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002122/1.836, allocations: 399.3 kB / 0.9034 GB, free: 100.3 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01509/1.851, allocations: 4.652 MB / 0.908 GB, free: 100.3 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004796/1.851, allocations: 10.78 kB / 0.908 GB, free: 100.3 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02959/1.881, allocations: 23.63 MB / 0.9311 GB, free: 93.86 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/1.881, allocations: 12.62 kB / 0.9311 GB, free: 93.86 MB / 426.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02604/1.907, allocations: 16.39 MB / 0.9471 GB, free: 87.22 MB / 426.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03083/1.938, allocations: 21.42 MB / 0.968 GB, free: 78.29 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003168/1.941, allocations: 1.222 MB / 0.9692 GB, free: 77.65 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00132/1.943, allocations: 12.05 kB / 0.9692 GB, free: 77.65 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003164/1.946, allocations: 135.2 kB / 0.9693 GB, free: 77.65 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004533/1.946, allocations: 165.9 kB / 0.9695 GB, free: 77.62 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003073/1.947, allocations: 84.53 kB / 0.9696 GB, free: 77.6 MB / 426.8 MB Notification: Performance of sort global known variables: time 0.005633/1.952, allocations: 3.904 MB / 0.9734 GB, free: 74.36 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.008029/1.96, allocations: 1.69 MB / 0.975 GB, free: 72.68 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (215): * Single equations (assignments): 209 * 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 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005798/1.961, allocations: 162.8 kB / 0.9752 GB, free: 72.56 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01287/1.974, allocations: 9.484 MB / 0.9844 GB, free: 64.33 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 7.154e-06/1.974, allocations: 0 / 0.9844 GB, free: 64.33 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006318/1.98, allocations: 4.086 MB / 0.9884 GB, free: 60.68 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004242/1.984, allocations: 0.8123 MB / 0.9892 GB, free: 60.02 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02986/2.014, allocations: 15.92 MB / 1.005 GB, free: 45.83 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007403/2.022, allocations: 6.081 MB / 1.011 GB, free: 41.32 MB / 426.8 MB Notification: Performance of SimCode: time 7.72e-07/2.022, allocations: 0 / 1.011 GB, free: 41.32 MB / 426.8 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1)