Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001098/0.001099, allocations: 200.8 kB / 8.54 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.166/1.166, allocations: 225.5 MB / 234.4 MB, free: 3.426 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00101/0.00101, allocations: 96.05 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09381/0.09486, allocations: 56.9 MB / 343.2 MB, free: 8.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08262/0.1775, allocations: 51.47 MB / 394.7 MB, free: 5.137 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2282/0.4057, allocations: 99.59 MB / 494.3 MB, free: 9.781 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.406, allocations: 85.02 kB / 494.4 MB, free: 9.738 MB / 362.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.5752/0.9812, allocations: 178.8 MB / 0.6574 GB, free: 65.48 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.9813, allocations: 13.59 kB / 0.6574 GB, free: 65.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06225/1.044, allocations: 16.12 MB / 0.6731 GB, free: 59.73 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02883/1.072, allocations: 11.8 MB / 0.6847 GB, free: 53.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00035/1.073, allocations: 242.7 kB / 0.6849 GB, free: 53.29 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002935/1.076, allocations: 465.5 kB / 0.6853 GB, free: 53.27 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01811/1.094, allocations: 10.35 MB / 0.6955 GB, free: 43.86 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03005/1.124, allocations: 15.26 MB / 0.7104 GB, free: 27.29 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005057/1.125, allocations: 111 kB / 0.7105 GB, free: 27.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002334/1.127, allocations: 40 kB / 0.7105 GB, free: 27.14 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002394/1.129, allocations: 1.675 MB / 0.7121 GB, free: 25.46 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3493/1.479, allocations: 75.96 MB / 0.7863 GB, free: 74.76 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005989/1.485, allocations: 5.817 MB / 0.792 GB, free: 74.11 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004263/1.489, allocations: 4.745 MB / 0.7966 GB, free: 74.05 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01791/1.507, allocations: 14.05 MB / 0.8104 GB, free: 69.31 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.88e-05/1.507, allocations: 71.47 kB / 0.8104 GB, free: 69.25 MB / 458.8 MB Notification: Performance of pre-optimization done (n=294): time 5.16e-06/1.507, allocations: 0 / 0.8104 GB, free: 69.25 MB / 458.8 MB Notification: Performance of matching and sorting (n=361): time 0.09478/1.602, allocations: 36.88 MB / 0.8464 GB, free: 56.75 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/1.602, allocations: 402.7 kB / 0.8468 GB, free: 56.3 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009465/1.611, allocations: 5.621 MB / 0.8523 GB, free: 54.37 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007234/1.612, allocations: 26.95 kB / 0.8523 GB, free: 54.34 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002635/1.615, allocations: 4.517 MB / 0.8567 GB, free: 50.98 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001472/1.616, allocations: 1.282 MB / 0.858 GB, free: 50.02 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005166/1.617, allocations: 0 / 0.858 GB, free: 50.02 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0004775/1.617, allocations: 0.6743 MB / 0.8587 GB, free: 49.55 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004596/1.622, allocations: 3.88 MB / 0.8624 GB, free: 48.1 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006597/1.628, allocations: 8.75 MB / 0.871 GB, free: 40.07 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007536/1.636, allocations: 5.748 MB / 0.8766 GB, free: 38 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001053/1.636, allocations: 51.09 kB / 0.8766 GB, free: 38 MB / 458.8 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.03253/1.669, allocations: 15.98 MB / 0.8923 GB, free: 31.61 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/1.669, allocations: 7.438 kB / 0.8923 GB, free: 31.61 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001587/1.669, allocations: 171.8 kB / 0.8924 GB, free: 31.45 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01702/1.686, allocations: 5.27 MB / 0.8976 GB, free: 27.63 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006598/1.693, allocations: 1.859 MB / 0.8994 GB, free: 26 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03476/1.727, allocations: 25.82 MB / 0.9246 GB, free: 3.293 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00826/1.736, allocations: 311 kB / 0.9249 GB, free: 3.039 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001716/1.737, allocations: 0.4986 MB / 0.9254 GB, free: 2.547 MB / 458.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.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: 780 * 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],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1006): * Single equations (assignments): 1000 * 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%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.001786/1.739, allocations: 0.5426 MB / 0.9259 GB, free: 2 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001476/1.741, allocations: 0.6403 MB / 0.9265 GB, free: 1.352 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1734/1.914, allocations: 11.62 MB / 0.9379 GB, free: 106.6 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.495e-05/1.914, allocations: 39.38 kB / 0.9379 GB, free: 106.6 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-05/1.914, allocations: 21.16 kB / 0.9379 GB, free: 106.6 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.846e-05/1.914, allocations: 14.3 kB / 0.938 GB, free: 106.6 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04526/1.96, allocations: 23.3 MB / 0.9607 GB, free: 104.1 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.048e-05/1.96, allocations: 6.938 kB / 0.9607 GB, free: 104.1 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002378/1.962, allocations: 432.8 kB / 0.9611 GB, free: 104.1 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01657/1.979, allocations: 4.946 MB / 0.966 GB, free: 104 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007277/1.979, allocations: 14.69 kB / 0.966 GB, free: 104 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03152/2.011, allocations: 24.74 MB / 0.9901 GB, free: 95.44 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.778e-06/2.011, allocations: 10.06 kB / 0.9901 GB, free: 95.44 MB / 458.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02795/2.039, allocations: 17.2 MB / 1.007 GB, free: 88.63 MB / 458.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03361/2.073, allocations: 22.53 MB / 1.029 GB, free: 79.28 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003263/2.076, allocations: 1.261 MB / 1.03 GB, free: 78.57 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001051/2.077, allocations: 11.75 kB / 1.03 GB, free: 78.57 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003291/2.08, allocations: 148.1 kB / 1.03 GB, free: 78.57 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005259/2.081, allocations: 175.6 kB / 1.03 GB, free: 78.54 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000384/2.081, allocations: 93.16 kB / 1.031 GB, free: 78.52 MB / 458.8 MB Notification: Performance of sort global known variables: time 0.006663/2.088, allocations: 3.938 MB / 1.034 GB, free: 77.16 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01053/2.098, allocations: 1.759 MB / 1.036 GB, free: 77.15 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (233): * Single equations (assignments): 227 * 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%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000817/2.099, allocations: 171.6 kB / 1.036 GB, free: 77.06 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01469/2.114, allocations: 9.883 MB / 1.046 GB, free: 71.58 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/2.114, allocations: 4 kB / 1.046 GB, free: 71.58 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007155/2.121, allocations: 4.327 MB / 1.05 GB, free: 67.72 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005048/2.126, allocations: 0.8397 MB / 1.051 GB, free: 67.04 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03372/2.16, allocations: 16.51 MB / 1.067 GB, free: 52.34 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007682/2.168, allocations: 6.275 MB / 1.073 GB, free: 47.68 MB / 458.8 MB Notification: Performance of SimCode: time 7.52e-07/2.168, allocations: 1.688 kB / 1.073 GB, free: 47.68 MB / 458.8 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1)