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_analytic.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_analytic,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.002307/0.002306, allocations: 182 kB / 13.66 MB, free: 1.664 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.182/2.182, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001106/0.001105, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.426e-05/3.448e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1047, allocations: 47.57 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4763/0.581, allocations: 109.5 MB / 478.7 MB, free: 104 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003244/0.5814, allocations: 89.45 kB / 478.8 MB, free: 60 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.024/1.605, allocations: 183.8 MB / 0.6471 GB, free: 36.04 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.605, allocations: 0 / 0.6471 GB, free: 36.04 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0009914/1.606, allocations: 188 kB / 0.6472 GB, free: 35.86 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: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.05219/1.658, allocations: 9.157 MB / 0.6562 GB, free: 26.61 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.287e-05/1.659, allocations: 11.97 kB / 0.6562 GB, free: 26.6 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007528/1.666, allocations: 1.407 MB / 0.6576 GB, free: 25.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.12/1.786, allocations: 16.65 MB / 0.6738 GB, free: 8.496 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3839/2.17, allocations: 14.6 MB / 0.6881 GB, free: 47.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001018/2.171, allocations: 0.6281 MB / 0.6887 GB, free: 47.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005233/2.176, allocations: 0.8533 MB / 0.6895 GB, free: 47.45 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07619/2.253, allocations: 19.25 MB / 0.7083 GB, free: 43.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009191/2.254, allocations: 114.4 kB / 0.7084 GB, free: 43.79 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004253/2.258, allocations: 392 kB / 0.7088 GB, free: 43.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003865/2.262, allocations: 1.603 MB / 0.7104 GB, free: 43.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0526/2.315, allocations: 15.36 MB / 0.7254 GB, free: 43.71 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1463/2.461, allocations: 80.59 MB / 0.8041 GB, free: 4.652 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04049/2.501, allocations: 7.917 MB / 0.8118 GB, free: 4 kB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0102/2.512, allocations: 4.023 MB / 0.8157 GB, free: 12.36 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03929/2.551, allocations: 14.1 MB / 0.8295 GB, free: 0 / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001839/2.551, allocations: 80.62 kB / 0.8296 GB, free: 15.92 MB / 458.7 MB Notification: Performance of pre-optimization done (n=308): time 6.923e-06/2.551, allocations: 0 / 0.8296 GB, free: 15.92 MB / 458.7 MB Notification: Performance of matching and sorting (n=408): time 0.5794/3.131, allocations: 38.24 MB / 0.8669 GB, free: 90.48 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001899/3.131, allocations: 406.5 kB / 0.8673 GB, free: 90.04 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02198/3.153, allocations: 6.6 MB / 0.8738 GB, free: 89.46 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001217/3.154, allocations: 97.16 kB / 0.8738 GB, free: 89.43 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006241/3.161, allocations: 5.496 MB / 0.8792 GB, free: 86.65 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002722/3.163, allocations: 1.482 MB / 0.8807 GB, free: 85.77 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00175/3.165, allocations: 185.6 kB / 0.8808 GB, free: 85.77 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009271/3.166, allocations: 0.6963 MB / 0.8815 GB, free: 85.43 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01069/3.177, allocations: 4.096 MB / 0.8855 GB, free: 85.41 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01423/3.191, allocations: 9.126 MB / 0.8944 GB, free: 79.01 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01413/3.205, allocations: 6.06 MB / 0.9003 GB, free: 78.94 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002477/3.206, allocations: 50.09 kB / 0.9004 GB, free: 78.94 MB / 458.7 MB Notification: Performance of matching and sorting (n=1215) (initialization): time 0.05801/3.264, allocations: 16.73 MB / 0.9167 GB, free: 75.29 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001658/3.264, allocations: 79.47 kB / 0.9168 GB, free: 75.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002696/3.264, allocations: 171.1 kB / 0.917 GB, free: 75.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02653/3.291, allocations: 4.702 MB / 0.9216 GB, free: 74.33 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0125/3.303, allocations: 1.974 MB / 0.9235 GB, free: 74.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06198/3.365, allocations: 25.11 MB / 0.948 GB, free: 62.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01256/3.378, allocations: 0.5342 MB / 0.9485 GB, free: 62.65 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00241/3.38, allocations: 0.5145 MB / 0.949 GB, free: 62.57 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 793 * 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],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1063): * Single equations (assignments): 1058 * 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%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003987/3.384, allocations: 0.8094 MB / 0.9498 GB, free: 61.82 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002452/3.387, allocations: 0.7135 MB / 0.9505 GB, free: 61.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04182/3.429, allocations: 10.85 MB / 0.9611 GB, free: 52.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.323e-05/3.429, allocations: 43.72 kB / 0.9612 GB, free: 52.46 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-05/3.429, allocations: 20 kB / 0.9612 GB, free: 52.45 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.098e-05/3.429, allocations: 23.22 kB / 0.9612 GB, free: 52.44 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0817/3.511, allocations: 23.68 MB / 0.9843 GB, free: 33.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.482e-05/3.511, allocations: 8 kB / 0.9843 GB, free: 33.28 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005125/3.516, allocations: 0.528 MB / 0.9849 GB, free: 32.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02515/3.541, allocations: 4.132 MB / 0.9889 GB, free: 29.91 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001041/3.542, allocations: 76.55 kB / 0.989 GB, free: 29.83 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05301/3.595, allocations: 21.86 MB / 1.01 GB, free: 11.14 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.12e-05/3.595, allocations: 11.94 kB / 1.01 GB, free: 11.12 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4298/4.025, allocations: 17.58 MB / 1.027 GB, free: 81.54 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006793/4.032, allocations: 1.369 MB / 1.029 GB, free: 81.45 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003581/4.036, allocations: 82.94 kB / 1.029 GB, free: 81.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008507/4.044, allocations: 245.8 kB / 1.029 GB, free: 81.45 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00202/4.046, allocations: 293.3 kB / 1.029 GB, free: 81.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001075/4.048, allocations: 108.2 kB / 1.03 GB, free: 81.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01589/4.063, allocations: 4.751 MB / 1.034 GB, free: 81.14 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.283e-06/4.064, allocations: 0 / 1.034 GB, free: 81.14 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01531/4.079, allocations: 2.202 MB / 1.036 GB, free: 81.14 MB / 458.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 (284): * Single equations (assignments): 280 * 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%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05561/4.135, allocations: 19.42 MB / 1.055 GB, free: 76.97 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02672/4.161, allocations: 10.44 MB / 1.065 GB, free: 76.68 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.697e-05/4.161, allocations: 3.781 kB / 1.065 GB, free: 76.68 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01135/4.173, allocations: 4.346 MB / 1.07 GB, free: 75.62 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01075/4.184, allocations: 1.054 MB / 1.071 GB, free: 75.24 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08845/4.272, allocations: 21.9 MB / 1.092 GB, free: 67.23 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0169/4.289, allocations: 6.575 MB / 1.099 GB, free: 65.17 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01036/4.299, allocations: 4.364 MB / 1.103 GB, free: 61.56 MB / 458.7 MB Notification: Performance of SimCode: time 1.322e-06/4.3, allocations: 0 / 1.103 GB, free: 61.56 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.621/10.92, allocations: 209.5 MB / 1.307 GB, free: 28.02 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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_analytic_res.mat does not exist to compare? outputFormat=mat