Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",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.001597/0.001597, allocations: 183.6 kB / 16.4 MB, free: 5.746 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.047/2.047, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.00116/0.00116, allocations: 92.36 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004034/0.0004034, allocations: 8 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.343, allocations: 47.58 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.1254/0.4686, allocations: 88.52 MB / 463.2 MB, free: 8.09 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.06153/0.5301, allocations: 20.09 MB / 483.3 MB, free: 3.938 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02134/0.5515, allocations: 462.8 kB / 483.7 MB, free: 3.484 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01762/0.5692, allocations: 4.46 MB / 488.2 MB, free: 15 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05188/0.6211, allocations: 12.79 MB / 0.4892 GB, free: 2.188 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008777/0.63, allocations: 1.396 MB / 0.4906 GB, free: 0.7891 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.5367/1.167, allocations: 77.71 MB / 0.5665 GB, free: 6.137 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02064/1.187, allocations: 8.862 MB / 0.5751 GB, free: 15.88 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00713/1.195, allocations: 2.417 MB / 0.5775 GB, free: 14.32 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007512/1.202, allocations: 3.125 MB / 0.5805 GB, free: 12.09 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002478/1.205, allocations: 280 kB / 0.5808 GB, free: 11.82 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005078/1.21, allocations: 1.099 MB / 0.5819 GB, free: 10.9 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006927/1.217, allocations: 3.425 MB / 0.5852 GB, free: 8.395 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004221/1.221, allocations: 1.6 MB / 0.5868 GB, free: 7.809 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01951/1.241, allocations: 11.27 MB / 0.5978 GB, free: 14.02 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/1.241, allocations: 0 / 0.5978 GB, free: 14.02 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.427e-06/1.241, allocations: 1.641 kB / 0.5978 GB, free: 14.02 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004986/1.241, allocations: 0 / 0.5978 GB, free: 14.02 MB / 442.7 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.04086/1.282, allocations: 8.897 MB / 0.6065 GB, free: 5.836 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.887e-05/1.282, allocations: 12.03 kB / 0.6065 GB, free: 5.824 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004583/1.287, allocations: 1.141 MB / 0.6076 GB, free: 5.148 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6276/1.915, allocations: 29.79 MB / 0.6367 GB, free: 9.254 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03115/1.946, allocations: 9.164 MB / 0.6456 GB, free: 2.68 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005948/1.946, allocations: 429.3 kB / 0.646 GB, free: 2.445 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002892/1.949, allocations: 0.578 MB / 0.6466 GB, free: 2.062 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05025/2, allocations: 16.41 MB / 0.6626 GB, free: 5.238 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005525/2, allocations: 96.92 kB / 0.6627 GB, free: 5.18 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002419/2.003, allocations: 270.6 kB / 0.663 GB, free: 5.102 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008252/2.011, allocations: 2.768 MB / 0.6657 GB, free: 2.836 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.583/2.594, allocations: 13.11 MB / 0.6785 GB, free: 202.7 MB / 490.8 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.1119/2.706, allocations: 66.82 MB / 0.7437 GB, free: 143.7 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03267/2.739, allocations: 7.713 MB / 0.7513 GB, free: 135.9 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02827/2.767, allocations: 11.87 MB / 0.7629 GB, free: 124 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.772e-05/2.767, allocations: 68.5 kB / 0.7629 GB, free: 123.9 MB / 490.8 MB Notification: Performance of pre-optimization done (n=280): time 7.034e-06/2.767, allocations: 0 / 0.7629 GB, free: 123.9 MB / 490.8 MB Notification: Performance of matching and sorting (n=339): time 0.305/3.072, allocations: 47.5 MB / 0.8093 GB, free: 76.57 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/3.072, allocations: 394.1 kB / 0.8097 GB, free: 76.1 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01718/3.089, allocations: 7.947 MB / 0.8175 GB, free: 68.18 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009398/3.09, allocations: 79.58 kB / 0.8175 GB, free: 68.1 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004378/3.095, allocations: 4.831 MB / 0.8223 GB, free: 63.27 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002018/3.097, allocations: 1.247 MB / 0.8235 GB, free: 62.03 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001084/3.098, allocations: 164 kB / 0.8236 GB, free: 61.87 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0005389/3.099, allocations: 0.6539 MB / 0.8243 GB, free: 61.21 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009165/3.108, allocations: 3.924 MB / 0.8281 GB, free: 57.27 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0123/3.12, allocations: 8.517 MB / 0.8364 GB, free: 46.47 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01257/3.133, allocations: 5.626 MB / 0.8419 GB, free: 40.83 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001407/3.133, allocations: 48 kB / 0.842 GB, free: 40.78 MB / 490.8 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.05541/3.188, allocations: 16.76 MB / 0.8583 GB, free: 23.96 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001115/3.188, allocations: 76 kB / 0.8584 GB, free: 23.89 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000188/3.189, allocations: 156 kB / 0.8585 GB, free: 23.74 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0309/3.22, allocations: 5.814 MB / 0.8642 GB, free: 17.91 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01014/3.23, allocations: 1.747 MB / 0.8659 GB, free: 16.16 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.372/3.602, allocations: 30.67 MB / 0.8959 GB, free: 178.2 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0111/3.613, allocations: 0.5294 MB / 0.8964 GB, free: 178 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002064/3.615, allocations: 473.5 kB / 0.8969 GB, free: 178 MB / 490.8 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.009351/3.625, allocations: 3.472 MB / 0.9002 GB, free: 176.7 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001917/3.626, allocations: 0.6584 MB / 0.9009 GB, free: 176.7 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04344/3.67, allocations: 11.45 MB / 0.9121 GB, free: 173 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-05/3.67, allocations: 39.2 kB / 0.9121 GB, free: 173 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.662e-05/3.67, allocations: 18.88 kB / 0.9121 GB, free: 173 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.51e-05/3.67, allocations: 15.48 kB / 0.9121 GB, free: 173 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07623/3.746, allocations: 24.94 MB / 0.9365 GB, free: 155.8 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.575e-05/3.747, allocations: 10.41 kB / 0.9365 GB, free: 155.8 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003637/3.75, allocations: 423.3 kB / 0.9369 GB, free: 155.4 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0302/3.78, allocations: 5.408 MB / 0.9422 GB, free: 150 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009169/3.781, allocations: 61.48 kB / 0.9423 GB, free: 150 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06574/3.847, allocations: 29.4 MB / 0.971 GB, free: 120.4 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.196e-05/3.847, allocations: 14.52 kB / 0.971 GB, free: 120.4 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05142/3.899, allocations: 17.58 MB / 0.9882 GB, free: 102.9 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005026/3.904, allocations: 1.361 MB / 0.9895 GB, free: 101.5 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002289/3.906, allocations: 63.95 kB / 0.9895 GB, free: 101.4 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006954/3.913, allocations: 271.6 kB / 0.9898 GB, free: 101.2 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001646/3.915, allocations: 237.7 kB / 0.99 GB, free: 101 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004364/3.915, allocations: 88 kB / 0.9901 GB, free: 100.9 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.01171/3.927, allocations: 5.227 MB / 0.9952 GB, free: 95.68 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.092e-06/3.927, allocations: 3.969 kB / 0.9952 GB, free: 95.68 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01159/3.939, allocations: 2.005 MB / 0.9972 GB, free: 93.68 MB / 490.8 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.05153/3.99, allocations: 19.33 MB / 1.016 GB, free: 74.12 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.02616/4.016, allocations: 10.41 MB / 1.026 GB, free: 63.72 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-05/4.017, allocations: 0 / 1.026 GB, free: 63.72 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01351/4.03, allocations: 4.668 MB / 1.031 GB, free: 59.02 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00864/4.039, allocations: 0.9853 MB / 1.032 GB, free: 58.05 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5506/4.589, allocations: 191.9 MB / 1.219 GB, free: 68.25 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01183/4.601, allocations: 5.726 MB / 1.225 GB, free: 62.52 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008399/4.61, allocations: 3.777 MB / 1.228 GB, free: 58.75 MB / 490.8 MB Notification: Performance of SimCode: time 1.233e-06/4.61, allocations: 0 / 1.228 GB, free: 58.75 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.577/11.19, allocations: 245.3 MB / 1.468 GB, free: 154 MB / 490.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat