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.002315/0.002321, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.021/2.021, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001119/0.001119, allocations: 97.02 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.817e-05/1.816e-05, allocations: 0 / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3299, allocations: 47.55 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1784/0.5084, allocations: 108.9 MB / 471.3 MB, free: 9.293 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003282/0.5088, allocations: 87.95 kB / 471.4 MB, free: 9.207 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9967/1.506, allocations: 180.1 MB / 0.6362 GB, free: 5.582 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.324e-06/1.506, allocations: 3.938 kB / 0.6362 GB, free: 5.578 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0008586/1.506, allocations: 184 kB / 0.6364 GB, free: 5.398 MB / 395.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.03799/1.544, allocations: 9.155 MB / 0.6453 GB, free: 12.15 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.672e-05/1.545, allocations: 12.03 kB / 0.6453 GB, free: 12.14 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4248/1.969, allocations: 16.65 MB / 0.6616 GB, free: 47.55 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04982/2.019, allocations: 14.59 MB / 0.6758 GB, free: 46.93 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005421/2.02, allocations: 280.3 kB / 0.6761 GB, free: 46.93 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004214/2.024, allocations: 0.5138 MB / 0.6766 GB, free: 46.91 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.032/2.056, allocations: 11.71 MB / 0.688 GB, free: 46.87 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04601/2.102, allocations: 16.54 MB / 0.7042 GB, free: 43.26 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006136/2.103, allocations: 111.9 kB / 0.7043 GB, free: 43.24 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003097/2.106, allocations: 37.97 kB / 0.7043 GB, free: 43.24 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003501/2.109, allocations: 1.605 MB / 0.7059 GB, free: 43.23 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1325/2.242, allocations: 78.14 MB / 0.7822 GB, free: 6.543 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01139/2.253, allocations: 5.43 MB / 0.7875 GB, free: 3.613 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008465/2.262, allocations: 3.88 MB / 0.7913 GB, free: 28 kB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004768/2.267, allocations: 2.852 MB / 0.7941 GB, free: 12.96 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001163/2.267, allocations: 67.38 kB / 0.7942 GB, free: 12.89 MB / 443.1 MB Notification: Performance of pre-optimization done (n=314): time 7.083e-06/2.267, allocations: 0 / 0.7942 GB, free: 12.89 MB / 443.1 MB Notification: Performance of matching and sorting (n=414): time 0.5101/2.777, allocations: 39.25 MB / 0.8325 GB, free: 88.95 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/2.777, allocations: 408.7 kB / 0.8329 GB, free: 88.51 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01589/2.793, allocations: 5.937 MB / 0.8387 GB, free: 88.16 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001049/2.794, allocations: 32.48 kB / 0.8387 GB, free: 88.13 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005449/2.8, allocations: 5.553 MB / 0.8441 GB, free: 86.66 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002361/2.802, allocations: 1.454 MB / 0.8456 GB, free: 85.77 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001447/2.804, allocations: 0 / 0.8456 GB, free: 85.77 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0008382/2.804, allocations: 0.7076 MB / 0.8462 GB, free: 85.43 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009395/2.814, allocations: 3.971 MB / 0.8501 GB, free: 85.41 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01329/2.827, allocations: 9.093 MB / 0.859 GB, free: 78.84 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0144/2.842, allocations: 5.941 MB / 0.8648 GB, free: 78.79 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002683/2.842, allocations: 51.56 kB / 0.8649 GB, free: 78.79 MB / 459.1 MB Notification: Performance of matching and sorting (n=1245) (initialization): time 0.0546/2.897, allocations: 15.7 MB / 0.8802 GB, free: 78.18 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001402/2.897, allocations: 88.67 kB / 0.8803 GB, free: 78.18 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002429/2.897, allocations: 180.3 kB / 0.8804 GB, free: 78.18 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02503/2.922, allocations: 4.566 MB / 0.8849 GB, free: 78.14 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01249/2.935, allocations: 2.024 MB / 0.8869 GB, free: 77.96 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05736/2.992, allocations: 23.45 MB / 0.9098 GB, free: 68.57 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01212/3.004, allocations: 371.9 kB / 0.9101 GB, free: 68.55 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002555/3.007, allocations: 0.5323 MB / 0.9107 GB, free: 68.47 MB / 459.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 817 * 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 (1093): * Single equations (assignments): 1088 * 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,77.8%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003849/3.011, allocations: 0.5781 MB / 0.9112 GB, free: 68.01 MB / 459.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03779/3.048, allocations: 10.4 MB / 0.9214 GB, free: 64.41 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002528/3.051, allocations: 0.6871 MB / 0.922 GB, free: 64.03 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03946/3.091, allocations: 10.48 MB / 0.9323 GB, free: 60.35 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001013/3.091, allocations: 46.02 kB / 0.9323 GB, free: 60.35 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.936e-05/3.091, allocations: 27.98 kB / 0.9324 GB, free: 60.35 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001003/3.091, allocations: 18.23 kB / 0.9324 GB, free: 60.35 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07442/3.165, allocations: 22.1 MB / 0.954 GB, free: 43.5 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-05/3.165, allocations: 8 kB / 0.954 GB, free: 43.49 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004855/3.17, allocations: 0.5402 MB / 0.9545 GB, free: 43.04 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02412/3.194, allocations: 4.043 MB / 0.9584 GB, free: 40.17 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009567/3.195, allocations: 15.95 kB / 0.9585 GB, free: 40.15 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04919/3.245, allocations: 20.28 MB / 0.9783 GB, free: 22.79 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-05/3.245, allocations: 11.94 kB / 0.9783 GB, free: 22.78 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3867/3.631, allocations: 17.73 MB / 0.9956 GB, free: 77.78 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005729/3.637, allocations: 1.34 MB / 0.9969 GB, free: 77.69 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002497/3.64, allocations: 21.67 kB / 0.9969 GB, free: 77.69 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007214/3.647, allocations: 184.3 kB / 0.9971 GB, free: 77.69 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001692/3.649, allocations: 288.3 kB / 0.9974 GB, free: 77.68 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006074/3.649, allocations: 111.5 kB / 0.9975 GB, free: 77.68 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.01143/3.661, allocations: 4.144 MB / 1.002 GB, free: 77.47 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.202e-06/3.661, allocations: 0 / 1.002 GB, free: 77.47 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.01432/3.675, allocations: 1.939 MB / 1.003 GB, free: 77.47 MB / 459.1 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 (290): * Single equations (assignments): 286 * 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.05048/3.726, allocations: 19.11 MB / 1.022 GB, free: 73.3 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.02554/3.751, allocations: 10.01 MB / 1.032 GB, free: 73.04 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 2.139e-05/3.751, allocations: 1.906 kB / 1.032 GB, free: 73.04 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01014/3.762, allocations: 4.239 MB / 1.036 GB, free: 72.84 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009093/3.771, allocations: 0.912 MB / 1.037 GB, free: 72.81 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08101/3.852, allocations: 21.48 MB / 1.058 GB, free: 69.05 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01733/3.869, allocations: 6.578 MB / 1.064 GB, free: 66.99 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01032/3.879, allocations: 4.358 MB / 1.069 GB, free: 63.38 MB / 459.1 MB Notification: Performance of SimCode: time 1.643e-06/3.88, allocations: 0 / 1.069 GB, free: 63.38 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.076/9.956, allocations: 206.1 MB / 1.27 GB, free: 25.4 MB / 459.1 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