Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001716/0.001716, allocations: 122.5 kB / 18.51 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002222/0.002222, allocations: 215.2 kB / 21.46 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.488/1.488, allocations: 230.5 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 75.81 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1045, allocations: 53.33 MB / 427 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2045/0.309, allocations: 19.44 MB / 446.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01495/0.324, allocations: 6.009 MB / 452.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005064/0.329, allocations: 196.4 kB / 452.7 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01258/0.3416, allocations: 5.907 MB / 458.6 MB, free: 9.172 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009912/0.3515, allocations: 3.394 MB / 462 MB, free: 7.148 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003943/0.3554, allocations: 1.572 MB / 463.5 MB, free: 6.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01898/0.3744, allocations: 12.67 MB / 476.2 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009191/0.3836, allocations: 6.411 MB / 482.6 MB, free: 9.059 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007155/0.3908, allocations: 3.626 MB / 486.3 MB, free: 5.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008255/0.399, allocations: 5.122 MB / 491.4 MB, free: 288 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002513/0.4015, allocations: 0.7149 MB / 492.1 MB, free: 15.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004768/0.4063, allocations: 1.697 MB / 493.8 MB, free: 13.87 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006928/0.4132, allocations: 4.355 MB / 498.1 MB, free: 9.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01001/0.4232, allocations: 4.744 MB / 0.4911 GB, free: 4.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02112/0.4444, allocations: 14.35 MB / 0.5051 GB, free: 6.324 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.4444, allocations: 0 / 0.5051 GB, free: 6.324 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4444, allocations: 4 kB / 0.5051 GB, free: 6.32 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004864/0.4449, allocations: 0 / 0.5051 GB, free: 6.32 MB / 414.1 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.03183/0.4767, allocations: 10.56 MB / 0.5154 GB, free: 11.65 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.4767, allocations: 12.03 kB / 0.5154 GB, free: 11.64 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002811/0.4795, allocations: 1.14 MB / 0.5166 GB, free: 10.49 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2915/0.7711, allocations: 24.3 MB / 0.5403 GB, free: 2.152 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02179/0.7929, allocations: 9.168 MB / 0.5492 GB, free: 8.895 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004388/0.7933, allocations: 427.4 kB / 0.5496 GB, free: 8.477 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002099/0.7954, allocations: 0.5893 MB / 0.5502 GB, free: 7.887 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03516/0.8306, allocations: 16.16 MB / 0.566 GB, free: 6.668 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003475/0.8309, allocations: 99.34 kB / 0.5661 GB, free: 6.57 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001392/0.8323, allocations: 271.8 kB / 0.5664 GB, free: 6.305 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004937/0.8372, allocations: 2.756 MB / 0.5691 GB, free: 3.543 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02932/0.8666, allocations: 12.87 MB / 0.5816 GB, free: 6.664 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4665/1.333, allocations: 66.22 MB / 0.6463 GB, free: 118.9 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01992/1.353, allocations: 7.348 MB / 0.6535 GB, free: 118 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004667/1.358, allocations: 3.92 MB / 0.6573 GB, free: 116.4 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01699/1.375, allocations: 11.7 MB / 0.6687 GB, free: 111.1 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.638e-05/1.375, allocations: 67.03 kB / 0.6688 GB, free: 111 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=280): time 5.47e-06/1.375, allocations: 0 / 0.6688 GB, free: 111 MB / 0.5138 GB Notification: Performance of matching and sorting (n=339): time 0.1618/1.536, allocations: 47.75 MB / 0.7154 GB, free: 77.21 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/1.537, allocations: 398.1 kB / 0.7158 GB, free: 76.74 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00874/1.545, allocations: 7.163 MB / 0.7228 GB, free: 69.7 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008509/1.546, allocations: 77.7 kB / 0.7229 GB, free: 69.62 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00274/1.549, allocations: 5.341 MB / 0.7281 GB, free: 64.84 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001309/1.55, allocations: 1.303 MB / 0.7294 GB, free: 63.56 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002196/1.552, allocations: 1.655 MB / 0.731 GB, free: 61.89 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.884e-05/1.552, allocations: 305.1 kB / 0.7313 GB, free: 61.59 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004437/1.557, allocations: 3.959 MB / 0.7351 GB, free: 57.62 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0069/1.564, allocations: 8.586 MB / 0.7435 GB, free: 46.82 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01245/1.576, allocations: 13.48 MB / 0.7567 GB, free: 31.14 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001009/1.576, allocations: 44 kB / 0.7567 GB, free: 31.09 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03008/1.606, allocations: 17.15 MB / 0.7735 GB, free: 13.89 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.277e-05/1.606, allocations: 72.22 kB / 0.7735 GB, free: 13.82 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001328/1.607, allocations: 164 kB / 0.7737 GB, free: 13.66 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01617/1.623, allocations: 5.768 MB / 0.7793 GB, free: 7.879 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005306/1.628, allocations: 1.747 MB / 0.781 GB, free: 6.129 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04648/1.675, allocations: 31.68 MB / 0.812 GB, free: 6.035 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007306/1.682, allocations: 0.5228 MB / 0.8125 GB, free: 5.512 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001591/1.683, allocations: 476 kB / 0.8129 GB, free: 5.051 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 66 (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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (934): * Single equations (assignments): 928 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,93,51.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.007177/1.691, allocations: 3.457 MB / 0.8163 GB, free: 1.582 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001988/1.693, allocations: 0.6868 MB / 0.817 GB, free: 0.8906 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02876/1.721, allocations: 11.43 MB / 0.8281 GB, free: 5.527 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.302e-05/1.721, allocations: 36 kB / 0.8282 GB, free: 5.492 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.748e-05/1.721, allocations: 16 kB / 0.8282 GB, free: 5.477 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.147e-05/1.722, allocations: 19.94 kB / 0.8282 GB, free: 5.457 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2738/1.995, allocations: 24.67 MB / 0.8523 GB, free: 183 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.633e-05/1.995, allocations: 6.625 kB / 0.8523 GB, free: 183 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001916/1.997, allocations: 416.8 kB / 0.8527 GB, free: 183 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01699/2.014, allocations: 5.375 MB / 0.858 GB, free: 182 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000933/2.015, allocations: 61.16 kB / 0.858 GB, free: 181.9 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03497/2.05, allocations: 30.36 MB / 0.8877 GB, free: 167.4 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/2.05, allocations: 7.625 kB / 0.8877 GB, free: 167.4 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02657/2.077, allocations: 16.45 MB / 0.9037 GB, free: 153.2 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002461/2.079, allocations: 0.7138 MB / 0.9044 GB, free: 152.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002495/2.082, allocations: 63.98 kB / 0.9045 GB, free: 152.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004497/2.086, allocations: 266.8 kB / 0.9047 GB, free: 152.5 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001315/2.088, allocations: 245 kB / 0.905 GB, free: 152.3 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003306/2.088, allocations: 87.98 kB / 0.9051 GB, free: 152.2 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.007923/2.096, allocations: 4.615 MB / 0.9096 GB, free: 147.6 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.91e-07/2.096, allocations: 0 / 0.9096 GB, free: 147.6 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.009002/2.105, allocations: 1.955 MB / 0.9115 GB, free: 145.6 MB / 0.5607 GB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 208 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,87,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02705/2.132, allocations: 17.16 MB / 0.9282 GB, free: 128.6 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01512/2.147, allocations: 10.09 MB / 0.9381 GB, free: 118.5 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/2.147, allocations: 0 / 0.9381 GB, free: 118.5 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.007408/2.154, allocations: 4.374 MB / 0.9424 GB, free: 114.1 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006895/2.161, allocations: 1.093 MB / 0.9434 GB, free: 113.1 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1315/2.293, allocations: 91.47 MB / 1.033 GB, free: 14.28 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2232/2.516, allocations: 5.524 MB / 1.038 GB, free: 182.2 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006751/2.523, allocations: 2.623 MB / 1.041 GB, free: 182.1 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005187/2.528, allocations: 3.735 MB / 1.044 GB, free: 182.1 MB / 0.5607 GB Notification: Performance of SimCode: time 1.553e-06/2.528, allocations: 0 / 1.044 GB, free: 182.1 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2151/2.743, allocations: 158.5 MB / 1.199 GB, free: 55.49 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.86/42.61, allocations: 1.969 kB / 1.199 GB, free: 55.49 MB / 0.5607 GB " [Timeout remaining time 617] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 45.34211752517149] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia.phi', 'inertia.w'] 42.79585372610018 42.805355066 42.358382075 Calling exit ...