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/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 3.2.3+maint.om/package.mo", uses=false) 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 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000827/0.0008271, allocations: 96.25 kB / 16.95 MB, free: 6.887 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.0008261/0.0008261, allocations: 185.7 kB / 17.84 MB, free: 6.133 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004933/0.0004933, allocations: 16.94 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1017, allocations: 47.56 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2873/0.389, allocations: 93.9 MB / 422.3 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.05368/0.4428, allocations: 19.14 MB / 441.5 MB, free: 5.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02659/0.4694, allocations: 470.8 kB / 441.9 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01806/0.4875, allocations: 4.903 MB / 446.8 MB, free: 172 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04638/0.534, allocations: 14.6 MB / 461.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007378/0.5414, allocations: 1.405 MB / 462.8 MB, free: 108 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.3739/0.9153, allocations: 98.21 MB / 0.5479 GB, free: 78.45 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01299/0.9283, allocations: 8.924 MB / 0.5566 GB, free: 77.77 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00668/0.935, allocations: 2.943 MB / 0.5595 GB, free: 77.76 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007894/0.943, allocations: 4.456 MB / 0.5639 GB, free: 76.25 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002156/0.9452, allocations: 276 kB / 0.5641 GB, free: 75.98 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004428/0.9496, allocations: 1.122 MB / 0.5652 GB, free: 75.28 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005205/0.9548, allocations: 3.7 MB / 0.5688 GB, free: 72.64 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003774/0.9586, allocations: 1.597 MB / 0.5704 GB, free: 72.05 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.9705, allocations: 11.29 MB / 0.5814 GB, free: 62.25 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.9705, allocations: 2.438 kB / 0.5814 GB, free: 62.25 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.277e-06/0.9705, allocations: 4 kB / 0.5814 GB, free: 62.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005318/0.9711, allocations: 0 / 0.5814 GB, free: 62.25 MB / 430.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.02261/0.9937, allocations: 8.741 MB / 0.59 GB, free: 54.19 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.9938, allocations: 14 kB / 0.59 GB, free: 54.18 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004749/0.9985, allocations: 1.143 MB / 0.5911 GB, free: 53.5 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2269/1.225, allocations: 24.81 MB / 0.6153 GB, free: 29.84 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02311/1.249, allocations: 10.37 MB / 0.6254 GB, free: 22.5 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004083/1.249, allocations: 425.1 kB / 0.6258 GB, free: 22.27 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002558/1.252, allocations: 0.5774 MB / 0.6264 GB, free: 21.89 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03435/1.286, allocations: 16.19 MB / 0.6422 GB, free: 9.234 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005249/1.287, allocations: 101.2 kB / 0.6423 GB, free: 9.172 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001823/1.288, allocations: 272.1 kB / 0.6426 GB, free: 9.094 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003996/1.292, allocations: 2.773 MB / 0.6453 GB, free: 6.824 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02869/1.321, allocations: 12.86 MB / 0.6578 GB, free: 11.61 MB / 446.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.4961/1.817, allocations: 66.43 MB / 0.7227 GB, free: 162.9 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02029/1.838, allocations: 7.618 MB / 0.7302 GB, free: 162.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005354/1.843, allocations: 4.185 MB / 0.7342 GB, free: 162.1 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02107/1.864, allocations: 11.72 MB / 0.7457 GB, free: 158.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.099e-05/1.864, allocations: 72.47 kB / 0.7458 GB, free: 158.5 MB / 494.1 MB Notification: Performance of pre-optimization done (n=280): time 7.073e-06/1.864, allocations: 0 / 0.7458 GB, free: 158.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=339): time 0.1553/2.02, allocations: 47.02 MB / 0.7917 GB, free: 122.1 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000159/2.02, allocations: 403.2 kB / 0.7921 GB, free: 121.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01435/2.034, allocations: 7.203 MB / 0.7991 GB, free: 114.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001142/2.035, allocations: 77.7 kB / 0.7992 GB, free: 114.4 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004181/2.04, allocations: 5.177 MB / 0.8042 GB, free: 109.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001917/2.041, allocations: 1.245 MB / 0.8054 GB, free: 108 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001292/2.043, allocations: 168 kB / 0.8056 GB, free: 107.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0009375/2.044, allocations: 0.6529 MB / 0.8062 GB, free: 107.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005829/2.05, allocations: 3.924 MB / 0.8101 GB, free: 103.2 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007915/2.058, allocations: 8.553 MB / 0.8184 GB, free: 92.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008246/2.066, allocations: 5.619 MB / 0.8239 GB, free: 87.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001708/2.066, allocations: 44 kB / 0.8239 GB, free: 87.06 MB / 494.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03438/2.1, allocations: 17.09 MB / 0.8406 GB, free: 70.21 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002212/2.101, allocations: 72 kB / 0.8407 GB, free: 70.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000307/2.101, allocations: 160 kB / 0.8409 GB, free: 69.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0156/2.117, allocations: 5.808 MB / 0.8465 GB, free: 64.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005844/2.122, allocations: 1.754 MB / 0.8482 GB, free: 62.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03671/2.159, allocations: 29.75 MB / 0.8773 GB, free: 32.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008065/2.167, allocations: 0.5305 MB / 0.8778 GB, free: 31.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001758/2.169, allocations: 471.7 kB / 0.8783 GB, free: 31.26 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * 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 () * 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 (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,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.007757/2.177, allocations: 3.477 MB / 0.8817 GB, free: 27.77 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001847/2.179, allocations: 0.6556 MB / 0.8823 GB, free: 27.11 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02343/2.202, allocations: 11.45 MB / 0.8935 GB, free: 15.58 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.587e-05/2.202, allocations: 36 kB / 0.8935 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.63e-05/2.202, allocations: 16 kB / 0.8935 GB, free: 15.53 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.783e-05/2.203, allocations: 15.94 kB / 0.8935 GB, free: 15.52 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.297/2.5, allocations: 24.89 MB / 0.9179 GB, free: 181.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-05/2.5, allocations: 6.938 kB / 0.9179 GB, free: 181.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002016/2.502, allocations: 423.2 kB / 0.9183 GB, free: 181.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0149/2.517, allocations: 5.41 MB / 0.9235 GB, free: 181 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000845/2.518, allocations: 65.59 kB / 0.9236 GB, free: 181 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03426/2.552, allocations: 28.46 MB / 0.9514 GB, free: 168.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.326e-06/2.552, allocations: 7.438 kB / 0.9514 GB, free: 168.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02697/2.579, allocations: 16.43 MB / 0.9674 GB, free: 155.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004842/2.584, allocations: 1.318 MB / 0.9687 GB, free: 154.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003008/2.587, allocations: 60.94 kB / 0.9688 GB, free: 154.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005112/2.592, allocations: 270.6 kB / 0.9691 GB, free: 154 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001276/2.593, allocations: 242.3 kB / 0.9693 GB, free: 153.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006551/2.594, allocations: 88.62 kB / 0.9694 GB, free: 153.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.009911/2.604, allocations: 4.645 MB / 0.9739 GB, free: 149 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.81e-07/2.604, allocations: 0 / 0.9739 GB, free: 149 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01107/2.615, allocations: 1.976 MB / 0.9758 GB, free: 147.1 MB / 494.1 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 () * 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 (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.02865/2.644, allocations: 17.14 MB / 0.9926 GB, free: 130 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01736/2.661, allocations: 10.41 MB / 1.003 GB, free: 119.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.401e-05/2.661, allocations: 7.531 kB / 1.003 GB, free: 119.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00759/2.669, allocations: 4.668 MB / 1.007 GB, free: 114.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008644/2.677, allocations: 1.035 MB / 1.008 GB, free: 113.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1572/2.835, allocations: 80.29 MB / 1.087 GB, free: 27.65 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01503/2.85, allocations: 5.544 MB / 1.092 GB, free: 22.07 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.01267/2.862, allocations: 2.634 MB / 1.095 GB, free: 19.43 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009134/2.872, allocations: 3.713 MB / 1.098 GB, free: 15.71 MB / 494.1 MB Notification: Performance of SimCode: time 1.252e-06/2.872, allocations: 0 / 1.098 GB, free: 15.71 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4804/3.352, allocations: 162.8 MB / 1.257 GB, free: 56.66 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/3.352, allocations: 227.5 kB / 1.258 GB, free: 56.41 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.815/10.17, allocations: 3.938 kB / 1.258 GB, free: 56.41 MB / 494.1 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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat