Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.UnitDeduction.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.172/2.172, allocations: 209.2 MB / 224.8 MB, free: 1.543 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006531/0.000653, allocations: 15.98 kB / 282.7 MB, free: 9.684 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1278, allocations: 48.7 MB / 331.4 MB, free: 8.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4577/0.5856, allocations: 82.44 MB / 413.8 MB, free: 2.578 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.586, allocations: 69.31 kB / 413.9 MB, free: 2.512 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06913/0.6551, allocations: 14.2 MB / 428.1 MB, free: 4.301 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.6552, allocations: 0 / 428.1 MB, free: 4.301 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.64e-05/0.6553, allocations: 16 kB / 428.1 MB, free: 4.285 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002841/0.6581, allocations: 0.9217 MB / 429 MB, free: 3.316 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.6582, allocations: 12.03 kB / 429 MB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002302/0.6584, allocations: 86.52 kB / 429.1 MB, free: 3.211 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002257/0.6587, allocations: 75.16 kB / 429.2 MB, free: 3.137 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001424/0.6601, allocations: 487.6 kB / 429.6 MB, free: 2.613 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.166e-05/0.6602, allocations: 40.94 kB / 429.7 MB, free: 2.574 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.6604, allocations: 59.91 kB / 429.7 MB, free: 2.516 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.6619, allocations: 499.1 kB / 430.2 MB, free: 2.008 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.352e-05/0.662, allocations: 4.328 kB / 430.2 MB, free: 2.004 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.237e-05/0.6621, allocations: 27.95 kB / 430.3 MB, free: 1.977 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.995e-05/0.6621, allocations: 8 kB / 430.3 MB, free: 1.969 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.6635, allocations: 362.3 kB / 430.6 MB, free: 1.613 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005707/0.6692, allocations: 1.78 MB / 432.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001808/0.6711, allocations: 477.5 kB / 432.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.355e-05/0.6712, allocations: 8.141 kB / 432.9 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.866e-05/0.6713, allocations: 38.56 kB / 432.9 MB, free: 15.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=38): time 3.165e-06/0.6713, allocations: 0 / 432.9 MB, free: 15.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.002361/0.6736, allocations: 0.5448 MB / 433.5 MB, free: 14.66 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.75e-05/0.6738, allocations: 136.5 kB / 433.6 MB, free: 14.49 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008099/0.6746, allocations: 401.9 kB / 434 MB, free: 14.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001324/0.6748, allocations: 33.7 kB / 434 MB, free: 14.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003249/0.6751, allocations: 351.1 kB / 434.4 MB, free: 13.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002338/0.6754, allocations: 145.8 kB / 434.5 MB, free: 13.56 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.22e-05/0.6754, allocations: 12 kB / 434.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.6756, allocations: 330.8 kB / 434.8 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000763/0.6764, allocations: 169 kB / 435 MB, free: 13.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00085/0.6773, allocations: 312.9 kB / 435.3 MB, free: 12.69 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007826/0.6781, allocations: 203.5 kB / 435.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/0.6781, allocations: 4 kB / 435.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001862/0.68, allocations: 0.5204 MB / 436 MB, free: 11.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.15e-05/0.6801, allocations: 8 kB / 436 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.6801, allocations: 4 kB / 436 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.888e-05/0.6801, allocations: 8 kB / 436.1 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009528/0.6811, allocations: 124.1 kB / 436.2 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.945e-05/0.6811, allocations: 8 kB / 436.2 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000724/0.6819, allocations: 71.5 kB / 436.3 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.548e-05/0.6819, allocations: 20 kB / 436.3 MB, free: 11.72 MB / 362.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 () * Number of clocked 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.0004133/0.6823, allocations: 181.7 kB / 436.4 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001812/0.6825, allocations: 63.3 kB / 436.5 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001663/0.6827, allocations: 61.16 kB / 436.6 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.367e-06/0.6827, allocations: 4 kB / 436.6 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.6828, allocations: 0 / 436.6 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.6828, allocations: 4 kB / 436.6 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00121/0.684, allocations: 0.5399 MB / 437.1 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.684, allocations: 4 kB / 437.1 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/0.685, allocations: 87.89 kB / 437.2 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.069e-05/0.6851, allocations: 7.953 kB / 437.2 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.072e-05/0.6851, allocations: 15.98 kB / 437.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.157e-05/0.6852, allocations: 7.938 kB / 437.2 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.6852, allocations: 0 / 437.2 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002367/0.6876, allocations: 0.7986 MB / 438 MB, free: 9.867 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003736/0.688, allocations: 164.4 kB / 438.2 MB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001228/0.6881, allocations: 15.98 kB / 438.2 MB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006851/0.6888, allocations: 39.97 kB / 438.3 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/0.689, allocations: 31.94 kB / 438.3 MB, free: 9.602 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.88e-05/0.689, allocations: 8 kB / 438.3 MB, free: 9.594 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000644/0.6897, allocations: 314.9 kB / 438.6 MB, free: 9.289 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.6897, allocations: 0 / 438.6 MB, free: 9.289 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008327/0.6905, allocations: 131.5 kB / 438.7 MB, free: 9.16 MB / 362.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 () * Number of clocked 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.002817/0.6934, allocations: 1.424 MB / 440.2 MB, free: 7.707 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.695, allocations: 433 kB / 440.6 MB, free: 7.285 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.695, allocations: 0 / 440.6 MB, free: 7.285 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007237/0.6958, allocations: 196.3 kB / 440.8 MB, free: 7.094 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001347/0.6971, allocations: 145.3 kB / 440.9 MB, free: 6.957 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009954/0.7071, allocations: 5.916 MB / 446.8 MB, free: 0.8906 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006237/0.7078, allocations: 0.9024 MB / 447.7 MB, free: 15.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005734/0.7084, allocations: 215.3 kB / 447.9 MB, free: 15.75 MB / 378.7 MB Notification: Performance of SimCode: time 1.113e-06/0.7084, allocations: 0 / 447.9 MB, free: 15.75 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.656/3.365, allocations: 9.168 MB / 457.1 MB, free: 6.594 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat