Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.605/1.605, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003509/0.0003509, allocations: 11.98 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08169/0.08207, allocations: 38.78 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.437/0.5191, allocations: 98.17 MB / 370.3 MB, free: 8.082 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003323/0.5195, allocations: 89.45 kB / 370.4 MB, free: 8.035 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9437/1.463, allocations: 182.3 MB / 0.5398 GB, free: 11.13 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.955e-06/1.463, allocations: 0 / 0.5398 GB, free: 11.13 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0008569/1.464, allocations: 188 kB / 0.5399 GB, free: 10.95 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.04308/1.507, allocations: 10.31 MB / 0.55 GB, free: 0.5352 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/1.507, allocations: 8.031 kB / 0.55 GB, free: 0.5273 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.5206/2.028, allocations: 1.392 MB / 0.5514 GB, free: 28.59 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1211/2.149, allocations: 16.63 MB / 0.5676 GB, free: 28.3 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04817/2.197, allocations: 14.66 MB / 0.5819 GB, free: 27.64 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007913/2.198, allocations: 0.6261 MB / 0.5825 GB, free: 27.62 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004397/2.203, allocations: 0.8587 MB / 0.5834 GB, free: 27.61 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06266/2.265, allocations: 19.4 MB / 0.6023 GB, free: 23.96 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007752/2.266, allocations: 116 kB / 0.6024 GB, free: 23.94 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003803/2.27, allocations: 387.7 kB / 0.6028 GB, free: 23.94 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003765/2.274, allocations: 1.598 MB / 0.6044 GB, free: 23.93 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05136/2.325, allocations: 15.59 MB / 0.6196 GB, free: 20.28 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4375/2.763, allocations: 80.65 MB / 0.6983 GB, free: 62.97 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03815/2.801, allocations: 7.889 MB / 0.7061 GB, free: 62.27 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03489/2.836, allocations: 14.11 MB / 0.7198 GB, free: 58.81 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.803e-05/2.836, allocations: 71.34 kB / 0.7199 GB, free: 58.77 MB / 394.8 MB Notification: Performance of pre-optimization done (n=308): time 7.454e-06/2.836, allocations: 0 / 0.7199 GB, free: 58.77 MB / 394.8 MB Notification: Performance of matching and sorting (n=408): time 0.2938/3.13, allocations: 47.59 MB / 0.7664 GB, free: 53.11 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001538/3.13, allocations: 409.2 kB / 0.7668 GB, free: 52.67 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0178/3.148, allocations: 6.655 MB / 0.7733 GB, free: 52.03 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001062/3.149, allocations: 92.12 kB / 0.7734 GB, free: 52 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005429/3.155, allocations: 5.481 MB / 0.7787 GB, free: 49.08 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002578/3.157, allocations: 1.485 MB / 0.7802 GB, free: 48.2 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001406/3.159, allocations: 185.1 kB / 0.7803 GB, free: 48.2 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0006873/3.159, allocations: 0.6964 MB / 0.781 GB, free: 47.87 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01058/3.17, allocations: 4.187 MB / 0.7851 GB, free: 46.41 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01439/3.184, allocations: 9.193 MB / 0.7941 GB, free: 37.55 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01382/3.198, allocations: 6.097 MB / 0.8 GB, free: 32.2 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002133/3.199, allocations: 52 kB / 0.8001 GB, free: 32.14 MB / 394.8 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.05611/3.255, allocations: 16.89 MB / 0.8166 GB, free: 18.36 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001351/3.255, allocations: 80 kB / 0.8167 GB, free: 18.29 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002922/3.255, allocations: 172 kB / 0.8168 GB, free: 18.12 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02594/3.281, allocations: 4.723 MB / 0.8214 GB, free: 14.69 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01192/3.293, allocations: 1.964 MB / 0.8233 GB, free: 12.97 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4026/3.696, allocations: 26.7 MB / 0.8494 GB, free: 69.58 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01195/3.708, allocations: 0.5368 MB / 0.8499 GB, free: 69.58 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002527/3.71, allocations: 0.5147 MB / 0.8505 GB, free: 69.58 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 70 (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.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 () * Number of clocked 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%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01243/3.723, allocations: 4.088 MB / 0.8544 GB, free: 69.46 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002387/3.725, allocations: 0.7105 MB / 0.8551 GB, free: 69.46 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0427/3.768, allocations: 10.96 MB / 0.8658 GB, free: 69.17 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001098/3.768, allocations: 42.02 kB / 0.8659 GB, free: 69.17 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.906e-05/3.768, allocations: 21.59 kB / 0.8659 GB, free: 69.17 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001017/3.768, allocations: 20.39 kB / 0.8659 GB, free: 69.17 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07886/3.847, allocations: 23.8 MB / 0.8892 GB, free: 66.57 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.912e-05/3.847, allocations: 10.44 kB / 0.8892 GB, free: 66.57 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004695/3.852, allocations: 0.5222 MB / 0.8897 GB, free: 66.56 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02468/3.877, allocations: 4.163 MB / 0.8937 GB, free: 65.67 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001045/3.878, allocations: 78.03 kB / 0.8938 GB, free: 65.62 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06037/3.938, allocations: 22.92 MB / 0.9162 GB, free: 55.64 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.127e-05/3.938, allocations: 10.41 kB / 0.9162 GB, free: 55.64 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0498/3.988, allocations: 17.65 MB / 0.9334 GB, free: 47.58 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004929/3.993, allocations: 1.368 MB / 0.9348 GB, free: 46.95 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002398/3.995, allocations: 83.91 kB / 0.9349 GB, free: 46.9 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007015/4.002, allocations: 240.5 kB / 0.9351 GB, free: 46.85 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001746/4.004, allocations: 291.7 kB / 0.9354 GB, free: 46.8 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005078/4.005, allocations: 108.3 kB / 0.9355 GB, free: 46.78 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.01259/4.017, allocations: 4.806 MB / 0.9402 GB, free: 45.19 MB / 410.8 MB Notification: Performance of sort global known variables: time 7.81e-07/4.017, allocations: 0 / 0.9402 GB, free: 45.19 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.01392/4.031, allocations: 2.193 MB / 0.9423 GB, free: 44.97 MB / 410.8 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 () * Number of clocked 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.04946/4.081, allocations: 19.59 MB / 0.9614 GB, free: 28 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.02359/4.105, allocations: 10.6 MB / 0.9718 GB, free: 19.11 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.622e-05/4.105, allocations: 4 kB / 0.9718 GB, free: 19.1 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01055/4.115, allocations: 4.428 MB / 0.9761 GB, free: 15.16 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0106/4.126, allocations: 1.045 MB / 0.9771 GB, free: 14.32 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.465/4.591, allocations: 159.4 MB / 1.133 GB, free: 16.97 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02572/4.617, allocations: 6.575 MB / 1.139 GB, free: 16.03 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01446/4.631, allocations: 4.336 MB / 1.143 GB, free: 16.02 MB / 490.8 MB Notification: Performance of SimCode: time 1.333e-06/4.631, allocations: 0 / 1.143 GB, free: 16.02 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.34/10.97, allocations: 206.1 MB / 1.345 GB, free: 79.83 MB / 490.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat