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.0008943/0.0008943, allocations: 96.11 kB / 16.93 MB, free: 5.984 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.0009418/0.0009417, allocations: 180.3 kB / 17.82 MB, free: 5.652 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.529/1.529, allocations: 205.4 MB / 224 MB, free: 13.17 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.000462/0.0004621, allocations: 15.94 kB / 280.8 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09596/0.09643, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2489/0.3454, allocations: 88.52 MB / 416.9 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04513/0.3906, allocations: 20.07 MB / 437 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01795/0.4086, allocations: 470.7 kB / 437.5 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01475/0.4234, allocations: 4.46 MB / 441.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04187/0.4653, allocations: 12.8 MB / 454.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007027/0.4724, allocations: 1.381 MB / 456.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1113/0.5837, allocations: 77.73 MB / 0.5213 GB, free: 7.945 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01314/0.5969, allocations: 8.87 MB / 0.53 GB, free: 15.01 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005363/0.6023, allocations: 2.418 MB / 0.5324 GB, free: 12.58 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00572/0.608, allocations: 3.132 MB / 0.5354 GB, free: 9.441 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001806/0.6099, allocations: 284 kB / 0.5357 GB, free: 9.164 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004003/0.6139, allocations: 1.096 MB / 0.5368 GB, free: 8.066 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004954/0.6189, allocations: 3.425 MB / 0.5401 GB, free: 4.633 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00336/0.6223, allocations: 1.602 MB / 0.5417 GB, free: 3.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2422/0.8646, allocations: 11.26 MB / 0.5527 GB, free: 87.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.8646, allocations: 0.875 kB / 0.5527 GB, free: 87.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.8646, allocations: 0 / 0.5527 GB, free: 87.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005907/0.8652, allocations: 0 / 0.5527 GB, free: 87.25 MB / 446.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.03179/0.897, allocations: 8.896 MB / 0.5614 GB, free: 83.8 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.8971, allocations: 9.562 kB / 0.5614 GB, free: 83.8 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005972/0.9031, allocations: 1.138 MB / 0.5625 GB, free: 83.7 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.296/1.199, allocations: 29.79 MB / 0.5916 GB, free: 70.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02236/1.222, allocations: 9.169 MB / 0.6005 GB, free: 63.61 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004033/1.222, allocations: 427 kB / 0.6009 GB, free: 63.37 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003667/1.226, allocations: 0.5817 MB / 0.6015 GB, free: 62.99 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03743/1.263, allocations: 16.4 MB / 0.6175 GB, free: 50.17 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004062/1.264, allocations: 103.4 kB / 0.6176 GB, free: 50.11 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002115/1.266, allocations: 268.8 kB / 0.6179 GB, free: 50.04 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004176/1.27, allocations: 2.756 MB / 0.6206 GB, free: 47.78 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02872/1.299, allocations: 13.12 MB / 0.6334 GB, free: 38.65 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.09336/1.392, allocations: 66.83 MB / 0.6986 GB, free: 10.2 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02068/1.413, allocations: 7.694 MB / 0.7061 GB, free: 2.375 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02407/1.437, allocations: 11.89 MB / 0.7178 GB, free: 6.379 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.918e-05/1.437, allocations: 66.2 kB / 0.7178 GB, free: 6.309 MB / 494.1 MB Notification: Performance of pre-optimization done (n=280): time 5.4e-06/1.437, allocations: 0 / 0.7178 GB, free: 6.309 MB / 494.1 MB Notification: Performance of matching and sorting (n=339): time 0.3997/1.837, allocations: 47.49 MB / 0.7642 GB, free: 188.8 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/1.837, allocations: 402 kB / 0.7646 GB, free: 188.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01187/1.849, allocations: 7.949 MB / 0.7723 GB, free: 180.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001084/1.85, allocations: 74.33 kB / 0.7724 GB, free: 180.4 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003233/1.853, allocations: 5.192 MB / 0.7775 GB, free: 175.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001862/1.855, allocations: 1.241 MB / 0.7787 GB, free: 174 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004741/1.856, allocations: 168 kB / 0.7789 GB, free: 173.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003422/1.856, allocations: 0.6531 MB / 0.7795 GB, free: 173.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004924/1.861, allocations: 3.927 MB / 0.7833 GB, free: 169.2 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006892/1.868, allocations: 8.522 MB / 0.7916 GB, free: 158.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007153/1.875, allocations: 5.616 MB / 0.7971 GB, free: 152.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.797e-05/1.875, allocations: 44 kB / 0.7972 GB, free: 152.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03576/1.911, allocations: 17.09 MB / 0.8139 GB, free: 135.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/1.911, allocations: 79.19 kB / 0.8139 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001952/1.911, allocations: 163.8 kB / 0.8141 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01668/1.928, allocations: 5.812 MB / 0.8198 GB, free: 129.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006049/1.934, allocations: 1.751 MB / 0.8215 GB, free: 127.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03704/1.971, allocations: 30.66 MB / 0.8514 GB, free: 96.76 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01051/1.982, allocations: 0.5383 MB / 0.852 GB, free: 96.22 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002632/1.984, allocations: 472 kB / 0.8524 GB, free: 95.76 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.008912/1.993, allocations: 3.476 MB / 0.8558 GB, free: 92.27 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002124/1.995, allocations: 0.6556 MB / 0.8564 GB, free: 91.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02743/2.023, allocations: 11.45 MB / 0.8676 GB, free: 80.08 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001049/2.023, allocations: 36 kB / 0.8677 GB, free: 80.04 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-05/2.023, allocations: 16 kB / 0.8677 GB, free: 80.03 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.571e-05/2.023, allocations: 19.91 kB / 0.8677 GB, free: 80.01 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05481/2.078, allocations: 24.94 MB / 0.8921 GB, free: 54.58 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.085e-05/2.078, allocations: 12 kB / 0.8921 GB, free: 54.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002106/2.08, allocations: 423.4 kB / 0.8925 GB, free: 54.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01619/2.096, allocations: 5.42 MB / 0.8978 GB, free: 48.72 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000826/2.097, allocations: 60 kB / 0.8978 GB, free: 48.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2708/2.368, allocations: 29.39 MB / 0.9265 GB, free: 182.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.521e-05/2.368, allocations: 9.75 kB / 0.9265 GB, free: 182.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03292/2.401, allocations: 17.59 MB / 0.9437 GB, free: 178.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005055/2.406, allocations: 1.36 MB / 0.945 GB, free: 177.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001865/2.408, allocations: 60.33 kB / 0.9451 GB, free: 177.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003803/2.412, allocations: 274.5 kB / 0.9454 GB, free: 177.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007946/2.413, allocations: 241.1 kB / 0.9456 GB, free: 177.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002577/2.413, allocations: 90.48 kB / 0.9457 GB, free: 177.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.009503/2.422, allocations: 5.229 MB / 0.9508 GB, free: 175.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.032e-06/2.423, allocations: 0 / 0.9508 GB, free: 175.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01399/2.437, allocations: 2.006 MB / 0.9527 GB, free: 175.7 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.03037/2.467, allocations: 19.32 MB / 0.9716 GB, free: 166.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01655/2.484, allocations: 10.41 MB / 0.9818 GB, free: 157.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/2.484, allocations: 0 / 0.9818 GB, free: 157.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007162/2.491, allocations: 4.669 MB / 0.9863 GB, free: 153 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006042/2.497, allocations: 0.9847 MB / 0.9873 GB, free: 152.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4255/2.922, allocations: 191 MB / 1.174 GB, free: 173.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006896/2.929, allocations: 5.713 MB / 1.179 GB, free: 169.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006833/2.936, allocations: 2.652 MB / 1.182 GB, free: 167.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004948/2.941, allocations: 3.724 MB / 1.186 GB, free: 163.9 MB / 494.1 MB Notification: Performance of SimCode: time 1.293e-06/2.941, allocations: 0 / 1.186 GB, free: 163.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4495/3.391, allocations: 164.4 MB / 1.346 GB, free: 145.8 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/3.391, allocations: 218.3 kB / 1.346 GB, free: 145.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.547/9.938, allocations: 0 / 1.346 GB, free: 145.5 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