Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.UnitDeduction.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.366/2.366, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.989e-05/2.01e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3711/0.3712, allocations: 54.86 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1653/0.5365, allocations: 87.74 MB / 445.9 MB, free: 6.988 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002659/0.5368, allocations: 67.97 kB / 445.9 MB, free: 6.922 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06404/0.6009, allocations: 13.19 MB / 459.1 MB, free: 9.699 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.6009, allocations: 0 / 459.1 MB, free: 9.699 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.984e-05/0.601, allocations: 16 kB / 459.1 MB, free: 9.684 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002167/0.6032, allocations: 0.8218 MB / 460 MB, free: 8.816 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.6033, allocations: 8.031 kB / 460 MB, free: 8.809 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002424/0.6035, allocations: 79.06 kB / 460 MB, free: 8.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/0.6047, allocations: 460.1 kB / 460.5 MB, free: 8.238 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.757e-05/0.6048, allocations: 16.34 kB / 460.5 MB, free: 8.223 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.6049, allocations: 43.86 kB / 460.5 MB, free: 8.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008287/0.6058, allocations: 262.6 kB / 460.8 MB, free: 7.922 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009789/0.6068, allocations: 388 kB / 461.2 MB, free: 7.527 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.6068, allocations: 0 / 461.2 MB, free: 7.527 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.525e-05/0.6069, allocations: 0 / 461.2 MB, free: 7.527 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/0.6069, allocations: 12 kB / 461.2 MB, free: 7.516 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00522/0.6121, allocations: 1.694 MB / 462.9 MB, free: 5.75 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009417/0.6131, allocations: 342.8 kB / 463.2 MB, free: 5.398 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000312/0.6135, allocations: 125.7 kB / 463.3 MB, free: 5.27 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.653e-05/0.6135, allocations: 8.031 kB / 463.4 MB, free: 5.262 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.739e-05/0.6136, allocations: 42.59 kB / 463.4 MB, free: 5.211 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 3.126e-06/0.6136, allocations: 4 kB / 463.4 MB, free: 5.207 MB / 394.7 MB Notification: Performance of matching and sorting (n=38): time 0.0009624/0.6146, allocations: 310 kB / 463.7 MB, free: 4.895 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.912e-05/0.6147, allocations: 110.8 kB / 463.8 MB, free: 4.762 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006341/0.6153, allocations: 369.3 kB / 464.2 MB, free: 4.395 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.965e-05/0.6154, allocations: 29.7 kB / 464.2 MB, free: 4.359 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000279/0.6157, allocations: 335.1 kB / 464.5 MB, free: 4.031 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.6158, allocations: 145.9 kB / 464.7 MB, free: 3.887 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.108e-05/0.6159, allocations: 3.938 kB / 464.7 MB, free: 3.883 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.616, allocations: 338.8 kB / 465 MB, free: 3.543 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003433/0.6164, allocations: 121.1 kB / 465.1 MB, free: 3.426 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004536/0.6169, allocations: 243.1 kB / 465.4 MB, free: 3.141 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004152/0.6173, allocations: 143.9 kB / 465.5 MB, free: 3 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.6173, allocations: 0 / 465.5 MB, free: 3 MB / 394.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001099/0.6184, allocations: 409 kB / 465.9 MB, free: 2.594 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006206/0.6191, allocations: 1.402 MB / 467.3 MB, free: 1.082 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.6191, allocations: 8 kB / 467.3 MB, free: 1.074 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.995e-05/0.6191, allocations: 4 kB / 467.3 MB, free: 1.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/0.6202, allocations: 131.8 kB / 467.4 MB, free: 0.9414 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.6202, allocations: 4 kB / 467.4 MB, free: 0.9375 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006651/0.6209, allocations: 47.67 kB / 467.5 MB, free: 0.8906 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.449e-05/0.6209, allocations: 23.98 kB / 467.5 MB, free: 0.8672 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.621, allocations: 4 kB / 467.5 MB, free: 0.8633 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009668/0.6219, allocations: 347.4 kB / 467.9 MB, free: 0.5234 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.622, allocations: 4 kB / 467.9 MB, free: 0.5195 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.622, allocations: 8 kB / 467.9 MB, free: 0.5117 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008727/0.6229, allocations: 119.8 kB / 468 MB, free: 404 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.716e-05/0.6229, allocations: 11.94 kB / 468 MB, free: 392 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000396/0.6233, allocations: 51.92 kB / 468 MB, free: 340 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.743e-05/0.6234, allocations: 20 kB / 468.1 MB, free: 320 kB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001724/0.6236, allocations: 109.5 kB / 468.2 MB, free: 204 kB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3028/0.9264, allocations: 304.9 kB / 468.5 MB, free: 95.87 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.9267, allocations: 53.66 kB / 468.5 MB, free: 95.87 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002241/0.927, allocations: 56 kB / 468.6 MB, free: 95.86 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.927, allocations: 8.203 kB / 468.6 MB, free: 95.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.383e-06/0.927, allocations: 1.312 kB / 468.6 MB, free: 95.86 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.927, allocations: 6.109 kB / 468.6 MB, free: 95.86 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/0.9282, allocations: 479.2 kB / 469.1 MB, free: 95.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.074e-06/0.9283, allocations: 0.5 kB / 469.1 MB, free: 95.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.9294, allocations: 91.98 kB / 469.2 MB, free: 95.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.115e-05/0.9294, allocations: 1.656 kB / 469.2 MB, free: 95.71 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.942e-05/0.9295, allocations: 4.438 kB / 469.2 MB, free: 95.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.656e-06/0.9295, allocations: 7.438 kB / 469.2 MB, free: 95.71 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.9295, allocations: 1.156 kB / 469.2 MB, free: 95.71 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001367/0.9309, allocations: 0.6569 MB / 469.8 MB, free: 95.46 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002727/0.9312, allocations: 165 kB / 470 MB, free: 95.34 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.922e-05/0.9313, allocations: 1.375 kB / 470 MB, free: 95.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006475/0.9319, allocations: 29.97 kB / 470 MB, free: 95.34 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.9321, allocations: 33.91 kB / 470 MB, free: 95.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.924e-05/0.9321, allocations: 12.91 kB / 470.1 MB, free: 95.34 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005356/0.9327, allocations: 279.7 kB / 470.3 MB, free: 95.26 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.9327, allocations: 0 / 470.3 MB, free: 95.26 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001223/0.9339, allocations: 200.2 kB / 470.5 MB, free: 95.24 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001522/0.9355, allocations: 1.271 MB / 471.8 MB, free: 94.38 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001408/0.9369, allocations: 0.5011 MB / 472.3 MB, free: 94.38 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.9369, allocations: 4.688 kB / 472.3 MB, free: 94.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000367/0.9373, allocations: 147.4 kB / 472.5 MB, free: 94.38 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001371/0.9387, allocations: 130 kB / 472.6 MB, free: 94.38 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003074/0.9418, allocations: 1.132 MB / 473.7 MB, free: 93.94 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004845/0.9423, allocations: 0.8918 MB / 474.6 MB, free: 93.24 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005314/0.9429, allocations: 212.2 kB / 474.8 MB, free: 93.23 MB / 394.7 MB Notification: Performance of SimCode: time 1.052e-06/0.9429, allocations: 5.062 kB / 474.8 MB, free: 93.23 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.673/3.616, allocations: 9.007 MB / 483.8 MB, free: 92.54 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat