Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json 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/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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008987/0.0008989, allocations: 94.72 kB / 16.32 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008991/0.0008991, allocations: 177.8 kB / 17.2 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 223.2 MB / 241.2 MB, free: 316 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.0002669, allocations: 4 kB / 300.9 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09484/0.09513, allocations: 50.42 MB / 351.3 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2858/0.3809, allocations: 101.2 MB / 452.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05003/0.431, allocations: 20.4 MB / 472.9 MB, free: 10.78 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02182/0.4529, allocations: 0.4987 MB / 473.4 MB, free: 10.28 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01677/0.4696, allocations: 5.284 MB / 478.7 MB, free: 4.969 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03913/0.5088, allocations: 15.63 MB / 494.3 MB, free: 5.285 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006955/0.5158, allocations: 1.486 MB / 495.8 MB, free: 3.797 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.4864/1.002, allocations: 179.2 MB / 0.6592 GB, free: 14.09 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01696/1.019, allocations: 9.291 MB / 0.6683 GB, free: 7.516 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008097/1.027, allocations: 3.079 MB / 0.6713 GB, free: 5.395 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008859/1.036, allocations: 4.615 MB / 0.6758 GB, free: 2.047 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003008/1.039, allocations: 288 kB / 0.6761 GB, free: 1.766 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005894/1.045, allocations: 1.146 MB / 0.6772 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008091/1.053, allocations: 3.814 MB / 0.6809 GB, free: 13.97 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004799/1.058, allocations: 1.647 MB / 0.6825 GB, free: 13.37 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01749/1.076, allocations: 11.62 MB / 0.6939 GB, free: 3.273 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.598e-06/1.076, allocations: 0 / 0.6939 GB, free: 3.273 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.186e-06/1.076, allocations: 0 / 0.6939 GB, free: 3.273 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0006423/1.076, allocations: 3.656 kB / 0.6939 GB, free: 3.273 MB / 494.1 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.02952/1.106, allocations: 8.997 MB / 0.7027 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/1.106, allocations: 8.031 kB / 0.7027 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004888/1.111, allocations: 1.193 MB / 0.7038 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2339/1.345, allocations: 24.83 MB / 0.7281 GB, free: 2.586 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4081/1.753, allocations: 9.572 MB / 0.7374 GB, free: 224.8 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005654/1.754, allocations: 448.1 kB / 0.7379 GB, free: 224.8 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003308/1.757, allocations: 0.6113 MB / 0.7385 GB, free: 224.8 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03796/1.795, allocations: 16.77 MB / 0.7548 GB, free: 217.4 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004551/1.795, allocations: 100.6 kB / 0.7549 GB, free: 217.4 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001314/1.797, allocations: 278.6 kB / 0.7552 GB, free: 217.3 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004472/1.801, allocations: 2.864 MB / 0.758 GB, free: 216.7 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02747/1.829, allocations: 13.27 MB / 0.771 GB, free: 204.8 MB / 0.5138 GB 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.07996/1.909, allocations: 68.36 MB / 0.8377 GB, free: 135.2 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01814/1.927, allocations: 7.956 MB / 0.8455 GB, free: 127.2 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005186/1.932, allocations: 4.317 MB / 0.8497 GB, free: 122.9 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01848/1.951, allocations: 12.05 MB / 0.8615 GB, free: 110.7 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.547e-05/1.951, allocations: 72.08 kB / 0.8615 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=294): time 5.05e-06/1.951, allocations: 0 / 0.8615 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=360): time 0.167/2.118, allocations: 50.83 MB / 0.9112 GB, free: 59.96 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/2.118, allocations: 394.2 kB / 0.9115 GB, free: 59.49 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01276/2.131, allocations: 7.273 MB / 0.9186 GB, free: 52.26 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009635/2.132, allocations: 81.7 kB / 0.9187 GB, free: 52.17 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003904/2.136, allocations: 5.35 MB / 0.9239 GB, free: 46.82 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001799/2.138, allocations: 1.32 MB / 0.9252 GB, free: 45.51 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001205/2.139, allocations: 168.3 kB / 0.9254 GB, free: 45.34 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0006639/2.139, allocations: 0.6616 MB / 0.926 GB, free: 44.67 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006237/2.146, allocations: 4.096 MB / 0.93 GB, free: 40.57 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008397/2.154, allocations: 8.827 MB / 0.9387 GB, free: 29.41 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008392/2.163, allocations: 5.832 MB / 0.9444 GB, free: 23.56 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001717/2.163, allocations: 48 kB / 0.9444 GB, free: 23.51 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.03581/2.199, allocations: 17.8 MB / 0.9618 GB, free: 5.652 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002003/2.199, allocations: 72 kB / 0.9619 GB, free: 5.582 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002666/2.199, allocations: 164 kB / 0.962 GB, free: 5.422 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2726/2.472, allocations: 6.078 MB / 0.9679 GB, free: 199.2 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007236/2.479, allocations: 1.827 MB / 0.9697 GB, free: 199.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04223/2.521, allocations: 30.89 MB / 0.9999 GB, free: 187.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00829/2.53, allocations: 0.5488 MB / 1 GB, free: 187.6 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001705/2.531, allocations: 483.9 kB / 1.001 GB, free: 187.5 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (968): * Single equations (assignments): 962 * 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.007124/2.538, allocations: 3.584 MB / 1.004 GB, free: 186 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001602/2.54, allocations: 0.6707 MB / 1.005 GB, free: 186 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02363/2.564, allocations: 12.08 MB / 1.017 GB, free: 182 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.311e-05/2.564, allocations: 39.02 kB / 1.017 GB, free: 182 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.599e-05/2.564, allocations: 22.31 kB / 1.017 GB, free: 182 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001001/2.564, allocations: 19.5 kB / 1.017 GB, free: 182 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05074/2.615, allocations: 26 MB / 1.042 GB, free: 157.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.454e-05/2.615, allocations: 4 kB / 1.042 GB, free: 157.6 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002626/2.618, allocations: 471.1 kB / 1.043 GB, free: 157.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01673/2.634, allocations: 5.736 MB / 1.048 GB, free: 151.4 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001007/2.635, allocations: 67.98 kB / 1.048 GB, free: 151.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03879/2.674, allocations: 29.76 MB / 1.077 GB, free: 121.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/2.674, allocations: 7.938 kB / 1.077 GB, free: 121.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03132/2.706, allocations: 17.37 MB / 1.094 GB, free: 104.2 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004821/2.71, allocations: 1.359 MB / 1.096 GB, free: 102.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002994/2.713, allocations: 67.98 kB / 1.096 GB, free: 102.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005204/2.719, allocations: 287.4 kB / 1.096 GB, free: 102.5 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001414/2.72, allocations: 250.6 kB / 1.096 GB, free: 102.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007176/2.721, allocations: 91.98 kB / 1.096 GB, free: 102.2 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.01036/2.731, allocations: 4.667 MB / 1.101 GB, free: 97.53 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.31e-07/2.731, allocations: 0 / 1.101 GB, free: 97.53 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01253/2.744, allocations: 2.065 MB / 1.103 GB, free: 95.47 MB / 0.5138 GB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 226 * 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.03319/2.777, allocations: 18.08 MB / 1.121 GB, free: 77.27 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02112/2.798, allocations: 10.86 MB / 1.131 GB, free: 66.43 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-05/2.798, allocations: 0 / 1.131 GB, free: 66.43 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.00992/2.808, allocations: 4.951 MB / 1.136 GB, free: 61.44 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0104/2.819, allocations: 1.055 MB / 1.137 GB, free: 60.41 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4292/3.248, allocations: 83.12 MB / 1.218 GB, free: 191.9 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007626/3.256, allocations: 5.736 MB / 1.224 GB, free: 190.1 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007164/3.263, allocations: 2.71 MB / 1.227 GB, free: 189.8 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005338/3.268, allocations: 3.888 MB / 1.23 GB, free: 186.2 MB / 0.5138 GB Notification: Performance of SimCode: time 1.473e-06/3.268, allocations: 0 / 1.23 GB, free: 186.2 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4887/3.757, allocations: 168.6 MB / 1.395 GB, free: 153.2 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001523/3.757, allocations: 227.5 kB / 1.395 GB, free: 152.9 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.587/10.34, allocations: 0 / 1.395 GB, free: 152.9 MB / 0.5138 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat