Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00161/0.001614, allocations: 189.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.161/2.161, allocations: 205.4 MB / 222.5 MB, free: 13.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 98.86 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003846/0.0003847, allocations: 8 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1014, allocations: 47.57 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.4006/0.502, allocations: 95.47 MB / 470.1 MB, free: 12.68 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.06434/0.5664, allocations: 21.45 MB / 491.6 MB, free: 7.172 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02199/0.5885, allocations: 0.4908 MB / 492 MB, free: 6.68 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01832/0.6068, allocations: 4.806 MB / 496.9 MB, free: 1.852 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05461/0.6615, allocations: 13.74 MB / 0.4986 GB, free: 4.074 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00918/0.6707, allocations: 1.48 MB / 0.5001 GB, free: 2.594 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.5262/1.197, allocations: 77.88 MB / 0.5761 GB, free: 31.08 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01695/1.214, allocations: 9.247 MB / 0.5852 GB, free: 24.53 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006316/1.22, allocations: 2.547 MB / 0.5876 GB, free: 22.88 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006591/1.227, allocations: 3.258 MB / 0.5908 GB, free: 20.56 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002274/1.229, allocations: 292 kB / 0.5911 GB, free: 20.28 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004624/1.234, allocations: 1.11 MB / 0.5922 GB, free: 19.35 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005666/1.24, allocations: 3.559 MB / 0.5957 GB, free: 16.75 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003842/1.244, allocations: 1.66 MB / 0.5973 GB, free: 16.14 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01563/1.259, allocations: 11.67 MB / 0.6087 GB, free: 6 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/1.259, allocations: 0 / 0.6087 GB, free: 6 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.226e-06/1.259, allocations: 0 / 0.6087 GB, free: 6 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004779/1.26, allocations: 0 / 0.6087 GB, free: 6 MB / 410.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.03828/1.298, allocations: 9.204 MB / 0.6177 GB, free: 13.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.493e-05/1.298, allocations: 8.031 kB / 0.6177 GB, free: 13.53 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004622/1.303, allocations: 1.186 MB / 0.6188 GB, free: 12.83 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6178/1.921, allocations: 29.83 MB / 0.648 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03214/1.953, allocations: 9.342 MB / 0.6571 GB, free: 10.18 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006068/1.954, allocations: 449.4 kB / 0.6575 GB, free: 9.941 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003156/1.957, allocations: 0.6069 MB / 0.6581 GB, free: 9.539 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05202/2.009, allocations: 16.99 MB / 0.6747 GB, free: 12.32 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004782/2.009, allocations: 103.7 kB / 0.6748 GB, free: 12.25 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002146/2.012, allocations: 278.7 kB / 0.6751 GB, free: 12.18 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008328/2.02, allocations: 2.862 MB / 0.6779 GB, free: 9.84 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04669/2.067, allocations: 13.54 MB / 0.6911 GB, free: 436 kB / 474.7 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.6736/2.74, allocations: 68.18 MB / 0.7577 GB, free: 154.2 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03101/2.771, allocations: 7.263 MB / 0.7648 GB, free: 151.8 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02971/2.801, allocations: 12.22 MB / 0.7767 GB, free: 145.1 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.126e-05/2.801, allocations: 67.61 kB / 0.7768 GB, free: 145.1 MB / 490.8 MB Notification: Performance of pre-optimization done (n=293): time 7.434e-06/2.801, allocations: 0 / 0.7768 GB, free: 145.1 MB / 490.8 MB Notification: Performance of matching and sorting (n=365): time 0.2508/3.052, allocations: 42.04 MB / 0.8178 GB, free: 111.4 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/3.052, allocations: 405.8 kB / 0.8182 GB, free: 111 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0167/3.069, allocations: 8.151 MB / 0.8262 GB, free: 102.9 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001011/3.07, allocations: 81.7 kB / 0.8262 GB, free: 102.8 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004713/3.075, allocations: 5.016 MB / 0.8311 GB, free: 97.79 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002167/3.077, allocations: 1.339 MB / 0.8324 GB, free: 96.46 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001037/3.078, allocations: 172 kB / 0.8326 GB, free: 96.29 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.00056/3.079, allocations: 0.6706 MB / 0.8333 GB, free: 95.61 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009147/3.088, allocations: 3.667 MB / 0.8368 GB, free: 91.93 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01201/3.1, allocations: 8.443 MB / 0.8451 GB, free: 81.17 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01205/3.112, allocations: 5.424 MB / 0.8504 GB, free: 75.72 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001303/3.112, allocations: 48 kB / 0.8504 GB, free: 75.68 MB / 490.8 MB Notification: Performance of matching and sorting (n=1124) (initialization): time 0.04725/3.159, allocations: 14.97 MB / 0.8651 GB, free: 60.65 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001174/3.16, allocations: 76 kB / 0.8651 GB, free: 60.58 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002005/3.16, allocations: 168 kB / 0.8653 GB, free: 60.41 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02091/3.181, allocations: 4.065 MB / 0.8693 GB, free: 56.34 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01111/3.192, allocations: 1.84 MB / 0.8711 GB, free: 54.49 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05952/3.251, allocations: 26.45 MB / 0.8969 GB, free: 27.64 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01104/3.263, allocations: 0.4964 MB / 0.8974 GB, free: 27.14 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002041/3.265, allocations: 0.496 MB / 0.8979 GB, free: 26.64 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * 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],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.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],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 (988): * Single equations (assignments): 982 * 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 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.009999/3.275, allocations: 3.614 MB / 0.9014 GB, free: 23.02 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002177/3.277, allocations: 0.6826 MB / 0.902 GB, free: 22.33 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03462/3.312, allocations: 9.394 MB / 0.9112 GB, free: 12.87 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.121e-05/3.312, allocations: 44.94 kB / 0.9113 GB, free: 12.83 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-05/3.312, allocations: 16 kB / 0.9113 GB, free: 12.81 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.42e-05/3.312, allocations: 19.94 kB / 0.9113 GB, free: 12.79 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3945/3.706, allocations: 20.38 MB / 0.9312 GB, free: 177.5 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.829e-05/3.707, allocations: 10.45 kB / 0.9312 GB, free: 177.5 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005425/3.712, allocations: 452.6 kB / 0.9316 GB, free: 177.5 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02868/3.741, allocations: 3.83 MB / 0.9354 GB, free: 177.5 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001228/3.742, allocations: 68.33 kB / 0.9355 GB, free: 177.5 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07504/3.817, allocations: 25.77 MB / 0.9606 GB, free: 165.5 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.787e-05/3.817, allocations: 14.47 kB / 0.9606 GB, free: 165.5 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06065/3.878, allocations: 15.65 MB / 0.9759 GB, free: 158.1 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006681/3.885, allocations: 1.309 MB / 0.9772 GB, free: 157.1 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003353/3.888, allocations: 68 kB / 0.9773 GB, free: 157.1 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008542/3.897, allocations: 232.2 kB / 0.9775 GB, free: 156.8 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001926/3.899, allocations: 264.8 kB / 0.9777 GB, free: 156.6 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000704/3.899, allocations: 101.6 kB / 0.9778 GB, free: 156.5 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.01277/3.912, allocations: 5.35 MB / 0.9831 GB, free: 151.2 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.253e-06/3.912, allocations: 3.609 kB / 0.9831 GB, free: 151.2 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01224/3.924, allocations: 2.051 MB / 0.9851 GB, free: 149.1 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (241): * Single equations (assignments): 235 * 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 {(9,69.1%) 92,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.04344/3.968, allocations: 17.62 MB / 1.002 GB, free: 131.3 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.02285/3.991, allocations: 9.632 MB / 1.012 GB, free: 121.7 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.736e-05/3.991, allocations: 4 kB / 1.012 GB, free: 121.7 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01224/4.003, allocations: 4.348 MB / 1.016 GB, free: 117.3 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008958/4.012, allocations: 1.005 MB / 1.017 GB, free: 116.4 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5741/4.586, allocations: 195.9 MB / 1.208 GB, free: 112.9 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0127/4.599, allocations: 5.94 MB / 1.214 GB, free: 110.7 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008472/4.608, allocations: 4.017 MB / 1.218 GB, free: 107.1 MB / 490.8 MB Notification: Performance of SimCode: time 1.082e-06/4.608, allocations: 3.125 kB / 1.218 GB, free: 107.1 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.675/11.28, allocations: 252.9 MB / 1.465 GB, free: 134.8 MB / 490.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat