Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",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.001135/0.001135, allocations: 94.75 kB / 16.3 MB, free: 5.992 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.00124/0.00124, allocations: 184 kB / 17.2 MB, free: 5.914 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.402/1.402, allocations: 223.2 MB / 241.1 MB, free: 5.402 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002955/0.0002956, allocations: 5.344 kB / 300.8 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.103, allocations: 50.43 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2685/0.3715, allocations: 97.82 MB / 449.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04934/0.4208, allocations: 22.49 MB / 471.5 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02448/0.4454, allocations: 0.4967 MB / 472 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01454/0.4599, allocations: 4.906 MB / 476.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0459/0.5059, allocations: 13.87 MB / 490.8 MB, free: 6.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006585/0.5125, allocations: 1.687 MB / 492.5 MB, free: 6.219 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.4401/0.9526, allocations: 142.7 MB / 0.6203 GB, free: 116.4 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01628/0.9689, allocations: 12.68 MB / 0.6327 GB, free: 110.8 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005253/0.9742, allocations: 2.629 MB / 0.6353 GB, free: 109.2 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005745/0.98, allocations: 3.541 MB / 0.6387 GB, free: 106.7 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001953/0.982, allocations: 340 kB / 0.6391 GB, free: 106.4 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003982/0.986, allocations: 1.305 MB / 0.6403 GB, free: 105.3 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004574/0.9906, allocations: 3.901 MB / 0.6441 GB, free: 102.5 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003194/0.9938, allocations: 1.864 MB / 0.646 GB, free: 101.8 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01351/1.007, allocations: 14.28 MB / 0.6599 GB, free: 89.4 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/1.007, allocations: 1.312 kB / 0.6599 GB, free: 89.4 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.093e-06/1.007, allocations: 0 / 0.6599 GB, free: 89.4 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0005479/1.008, allocations: 0 / 0.6599 GB, free: 89.4 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.02809/1.036, allocations: 10.1 MB / 0.6698 GB, free: 80.12 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/1.036, allocations: 12.02 kB / 0.6698 GB, free: 80.11 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005682/1.042, allocations: 1.34 MB / 0.6711 GB, free: 79.33 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2734/1.315, allocations: 30.06 MB / 0.7004 GB, free: 51.16 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.024/1.339, allocations: 9.21 MB / 0.7094 GB, free: 44.67 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005065/1.34, allocations: 0.5205 MB / 0.7099 GB, free: 44.38 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003229/1.343, allocations: 0.7337 MB / 0.7107 GB, free: 43.89 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04524/1.388, allocations: 19.42 MB / 0.7296 GB, free: 26.32 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004767/1.389, allocations: 93.61 kB / 0.7297 GB, free: 26.26 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003025/1.392, allocations: 327.1 kB / 0.73 GB, free: 25.99 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004333/1.396, allocations: 2.82 MB / 0.7328 GB, free: 23.21 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03338/1.43, allocations: 15.81 MB / 0.7482 GB, free: 7.641 MB / 478.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.5091/1.939, allocations: 72.92 MB / 0.8194 GB, free: 157.4 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02149/1.96, allocations: 8.126 MB / 0.8274 GB, free: 156.7 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02362/1.984, allocations: 14.34 MB / 0.8414 GB, free: 151.6 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.192e-05/1.984, allocations: 73.45 kB / 0.8414 GB, free: 151.5 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=310): time 7.685e-06/1.984, allocations: 0 / 0.8414 GB, free: 151.5 MB / 0.4982 GB Notification: Performance of matching and sorting (n=416): time 0.1647/2.149, allocations: 49.08 MB / 0.8894 GB, free: 109.8 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/2.149, allocations: 402.7 kB / 0.8898 GB, free: 109.3 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0108/2.16, allocations: 8.288 MB / 0.8978 GB, free: 101 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.00111/2.161, allocations: 89.7 kB / 0.8979 GB, free: 100.9 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003213/2.164, allocations: 5.798 MB / 0.9036 GB, free: 95.13 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001739/2.166, allocations: 1.502 MB / 0.9051 GB, free: 93.64 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005521/2.166, allocations: 184 kB / 0.9052 GB, free: 93.46 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0003547/2.167, allocations: 0.6907 MB / 0.9059 GB, free: 92.76 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005176/2.172, allocations: 4.414 MB / 0.9102 GB, free: 88.34 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008027/2.18, allocations: 9.333 MB / 0.9193 GB, free: 76.67 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008428/2.189, allocations: 6.312 MB / 0.9255 GB, free: 70.4 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001044/2.189, allocations: 52 kB / 0.9256 GB, free: 70.35 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1204) (initialization): time 0.03596/2.225, allocations: 17.99 MB / 0.9431 GB, free: 52.31 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001031/2.225, allocations: 91.45 kB / 0.9432 GB, free: 52.23 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001852/2.225, allocations: 172 kB / 0.9434 GB, free: 52.06 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01527/2.24, allocations: 5.225 MB / 0.9485 GB, free: 46.83 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00637/2.247, allocations: 1.949 MB / 0.9504 GB, free: 44.88 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03564/2.282, allocations: 29.31 MB / 0.979 GB, free: 15.43 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007756/2.29, allocations: 0.5533 MB / 0.9795 GB, free: 14.88 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001346/2.292, allocations: 0.5039 MB / 0.98 GB, free: 14.38 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 774 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1047): * Single equations (assignments): 1042 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007372/2.299, allocations: 4.078 MB / 0.984 GB, free: 10.29 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002112/2.301, allocations: 0.7058 MB / 0.9847 GB, free: 9.574 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2396/2.541, allocations: 11.87 MB / 0.9963 GB, free: 177.7 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.109e-05/2.541, allocations: 43.23 kB / 0.9963 GB, free: 177.7 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.971e-05/2.541, allocations: 22.03 kB / 0.9964 GB, free: 177.7 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.503e-05/2.541, allocations: 26.12 kB / 0.9964 GB, free: 177.7 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04988/2.591, allocations: 25.69 MB / 1.021 GB, free: 173.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.835e-05/2.591, allocations: 7.719 kB / 1.021 GB, free: 173.9 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002816/2.594, allocations: 0.5765 MB / 1.022 GB, free: 173.9 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01428/2.608, allocations: 4.829 MB / 1.027 GB, free: 172.9 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006965/2.609, allocations: 72.12 kB / 1.027 GB, free: 172.8 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03169/2.641, allocations: 26.09 MB / 1.052 GB, free: 154.3 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.706e-06/2.641, allocations: 19.86 kB / 1.052 GB, free: 154.2 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03331/2.674, allocations: 19.19 MB / 1.071 GB, free: 135.1 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005942/2.68, allocations: 1.484 MB / 1.073 GB, free: 133.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003212/2.683, allocations: 76 kB / 1.073 GB, free: 133.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00554/2.689, allocations: 279.7 kB / 1.073 GB, free: 133.6 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001597/2.69, allocations: 298.9 kB / 1.073 GB, free: 133.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008672/2.691, allocations: 108 kB / 1.073 GB, free: 133.2 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.0112/2.702, allocations: 5.427 MB / 1.079 GB, free: 127.8 MB / 0.4982 GB Notification: Performance of sort global known variables: time 5.81e-07/2.702, allocations: 6.844 kB / 1.079 GB, free: 127.8 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01252/2.715, allocations: 2.257 MB / 1.081 GB, free: 125.5 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (287): * Single equations (assignments): 283 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 113} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03454/2.75, allocations: 21.15 MB / 1.101 GB, free: 104.2 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01935/2.769, allocations: 11.16 MB / 1.112 GB, free: 93.15 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.406e-05/2.769, allocations: 3.281 kB / 1.112 GB, free: 93.15 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.00825/2.777, allocations: 4.808 MB / 1.117 GB, free: 88.33 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008762/2.786, allocations: 1.044 MB / 1.118 GB, free: 87.32 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3587/3.145, allocations: 156 MB / 1.27 GB, free: 101.2 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01386/3.159, allocations: 6.561 MB / 1.277 GB, free: 100.3 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.01002/3.169, allocations: 2.945 MB / 1.28 GB, free: 100.2 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007058/3.176, allocations: 4.326 MB / 1.284 GB, free: 100.2 MB / 0.4982 GB Notification: Performance of SimCode: time 1.212e-06/3.176, allocations: 0 / 1.284 GB, free: 100.2 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4944/3.67, allocations: 181.1 MB / 1.461 GB, free: 131 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001563/3.671, allocations: 215.6 kB / 1.461 GB, free: 130.7 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.943/10.61, allocations: 0 / 1.461 GB, free: 130.7 MB / 0.4982 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat