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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001941/0.001942, allocations: 174.9 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 221.3 MB / 235.5 MB, free: 2.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009268/0.0009269, allocations: 91.73 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.703e-05/3.713e-05, allocations: 0 / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1226, allocations: 50.41 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4003/0.5229, allocations: 111.7 MB / 0.4942 GB, free: 7.715 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.5232, allocations: 91.94 kB / 0.4943 GB, free: 7.625 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6766/1.2, allocations: 185.5 MB / 0.6754 GB, free: 29.39 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.994e-06/1.2, allocations: 0 / 0.6754 GB, free: 29.39 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007192/1.201, allocations: 188 kB / 0.6756 GB, free: 29.21 MB / 426.7 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.03167/1.232, allocations: 9.129 MB / 0.6845 GB, free: 19.99 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/1.232, allocations: 8.031 kB / 0.6845 GB, free: 19.98 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00732/1.24, allocations: 1.396 MB / 0.6859 GB, free: 18.57 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05999/1.3, allocations: 16.65 MB / 0.7021 GB, free: 1.883 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03943/1.339, allocations: 13.65 MB / 0.7155 GB, free: 4.133 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007574/1.34, allocations: 0.6298 MB / 0.7161 GB, free: 3.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004321/1.344, allocations: 0.8588 MB / 0.7169 GB, free: 2.641 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4065/1.751, allocations: 19.25 MB / 0.7357 GB, free: 56.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009108/1.752, allocations: 112.3 kB / 0.7358 GB, free: 56.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004179/1.756, allocations: 390.2 kB / 0.7362 GB, free: 56.95 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003497/1.76, allocations: 1.604 MB / 0.7378 GB, free: 56.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03845/1.798, allocations: 15.35 MB / 0.7528 GB, free: 56.86 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1067/1.905, allocations: 80.43 MB / 0.8313 GB, free: 5.977 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02046/1.925, allocations: 7.877 MB / 0.839 GB, free: 3.465 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005522/1.931, allocations: 4.005 MB / 0.8429 GB, free: 1.645 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02407/1.955, allocations: 14.04 MB / 0.8566 GB, free: 9.52 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.691e-05/1.955, allocations: 68.33 kB / 0.8567 GB, free: 9.445 MB / 458.7 MB Notification: Performance of pre-optimization done (n=310): time 7.724e-06/1.955, allocations: 1.344 kB / 0.8567 GB, free: 9.445 MB / 458.7 MB Notification: Performance of matching and sorting (n=417): time 0.5091/2.464, allocations: 41.34 MB / 0.8971 GB, free: 88.31 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001832/2.464, allocations: 404.4 kB / 0.8974 GB, free: 87.87 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0172/2.482, allocations: 6.492 MB / 0.9038 GB, free: 87.44 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001237/2.483, allocations: 90.89 kB / 0.9039 GB, free: 87.41 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006584/2.49, allocations: 5.817 MB / 0.9095 GB, free: 86.04 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002494/2.492, allocations: 1.51 MB / 0.911 GB, free: 85.14 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001201/2.493, allocations: 188.7 kB / 0.9112 GB, free: 85.14 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007658/2.494, allocations: 0.6995 MB / 0.9119 GB, free: 84.81 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008825/2.503, allocations: 4.198 MB / 0.916 GB, free: 84.79 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01328/2.516, allocations: 9.202 MB / 0.925 GB, free: 78.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01159/2.528, allocations: 6.164 MB / 0.931 GB, free: 78.37 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000362/2.528, allocations: 48 kB / 0.931 GB, free: 78.37 MB / 474.7 MB Notification: Performance of matching and sorting (n=1218) (initialization): time 0.04434/2.573, allocations: 17.48 MB / 0.9481 GB, free: 77 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002075/2.573, allocations: 80.5 kB / 0.9482 GB, free: 77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002817/2.573, allocations: 173.2 kB / 0.9483 GB, free: 77 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01586/2.589, allocations: 4.908 MB / 0.9531 GB, free: 76 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007979/2.597, allocations: 1.973 MB / 0.9551 GB, free: 75.76 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03826/2.635, allocations: 26.44 MB / 0.9809 GB, free: 63.91 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01142/2.647, allocations: 0.5513 MB / 0.9814 GB, free: 63.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003077/2.65, allocations: 0.5094 MB / 0.9819 GB, free: 63.66 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 787 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1061): * Single equations (assignments): 1056 * 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.004955/2.655, allocations: 0.8077 MB / 0.9827 GB, free: 63.02 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003068/2.658, allocations: 0.7073 MB / 0.9834 GB, free: 62.63 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02981/2.688, allocations: 11.34 MB / 0.9945 GB, free: 58.57 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.966e-05/2.688, allocations: 45.69 kB / 0.9945 GB, free: 58.57 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.683e-05/2.688, allocations: 24.81 kB / 0.9945 GB, free: 58.57 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001313/2.688, allocations: 18.38 kB / 0.9946 GB, free: 58.57 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06264/2.751, allocations: 24.71 MB / 1.019 GB, free: 40.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.098e-05/2.751, allocations: 8 kB / 1.019 GB, free: 40.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003185/2.754, allocations: 0.5753 MB / 1.019 GB, free: 40 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01507/2.769, allocations: 4.481 MB / 1.024 GB, free: 36.87 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001083/2.771, allocations: 72 kB / 1.024 GB, free: 36.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0351/2.806, allocations: 23.32 MB / 1.046 GB, free: 16.84 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.251e-05/2.806, allocations: 11.94 kB / 1.046 GB, free: 16.83 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3816/3.187, allocations: 18.5 MB / 1.065 GB, free: 76.55 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005977/3.193, allocations: 1.402 MB / 1.066 GB, free: 76.46 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002398/3.196, allocations: 77.77 kB / 1.066 GB, free: 76.46 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005559/3.201, allocations: 256.3 kB / 1.066 GB, free: 76.46 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001372/3.203, allocations: 297.5 kB / 1.067 GB, free: 76.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004385/3.203, allocations: 111.6 kB / 1.067 GB, free: 76.45 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01204/3.215, allocations: 4.677 MB / 1.071 GB, free: 76.16 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.01e-07/3.215, allocations: 0 / 1.071 GB, free: 76.16 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01446/3.23, allocations: 2.222 MB / 1.073 GB, free: 76.16 MB / 474.7 MB 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (288): * Single equations (assignments): 284 * 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.04089/3.271, allocations: 20.32 MB / 1.093 GB, free: 72 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01886/3.29, allocations: 10.76 MB / 1.104 GB, free: 71.71 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-05/3.29, allocations: 3.094 kB / 1.104 GB, free: 71.71 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007471/3.297, allocations: 4.59 MB / 1.108 GB, free: 71.48 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008859/3.306, allocations: 1.049 MB / 1.109 GB, free: 71.45 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05995/3.366, allocations: 20.88 MB / 1.13 GB, free: 66.92 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01695/3.383, allocations: 6.566 MB / 1.136 GB, free: 64.86 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01081/3.394, allocations: 2.949 MB / 1.139 GB, free: 64.79 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01041/3.404, allocations: 4.349 MB / 1.143 GB, free: 61.14 MB / 474.7 MB Notification: Performance of SimCode: time 2.053e-06/3.404, allocations: 0 / 1.143 GB, free: 61.14 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6122/4.017, allocations: 179.5 MB / 1.318 GB, free: 82.94 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001993/4.017, allocations: 193.2 kB / 1.319 GB, free: 82.71 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.922/12.94, allocations: 0 / 1.319 GB, free: 82.71 MB / 490.7 MB (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