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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.427/2.427, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006089/0.000609, allocations: 16 kB / 314.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3473, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.186/0.5334, allocations: 88.5 MB / 457.8 MB, free: 2.086 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002834/0.5338, allocations: 71.92 kB / 457.9 MB, free: 2.016 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0627/0.5965, allocations: 13.29 MB / 471.2 MB, free: 4.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.5965, allocations: 0 / 471.2 MB, free: 4.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.912e-05/0.5966, allocations: 16 kB / 471.2 MB, free: 4.664 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.002671/0.5993, allocations: 0.911 MB / 472.1 MB, free: 3.703 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.5994, allocations: 8.031 kB / 472.1 MB, free: 3.695 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001822/0.5996, allocations: 86.52 kB / 472.2 MB, free: 3.602 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001991/0.5998, allocations: 75.16 kB / 472.3 MB, free: 3.527 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/0.601, allocations: 468 kB / 472.8 MB, free: 3.031 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.49e-05/0.6011, allocations: 44.95 kB / 472.8 MB, free: 2.988 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001455/0.6012, allocations: 52 kB / 472.9 MB, free: 2.938 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/0.6028, allocations: 494.2 kB / 473.3 MB, free: 2.434 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.626e-05/0.6028, allocations: 0 / 473.3 MB, free: 2.434 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.505e-05/0.6029, allocations: 20 kB / 473.4 MB, free: 2.414 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.219e-05/0.603, allocations: 12 kB / 473.4 MB, free: 2.402 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.6043, allocations: 354.2 kB / 473.7 MB, free: 2.059 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005826/0.6101, allocations: 1.784 MB / 475.5 MB, free: 192 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3275/0.9377, allocations: 462 kB / 476 MB, free: 92.75 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.266e-05/0.9378, allocations: 6.766 kB / 476 MB, free: 92.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.9378, allocations: 40.58 kB / 476 MB, free: 92.71 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 3.377e-06/0.9378, allocations: 0.5625 kB / 476 MB, free: 92.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=38): time 0.002388/0.9402, allocations: 0.5549 MB / 476.6 MB, free: 92.66 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.642e-05/0.9403, allocations: 111.2 kB / 476.7 MB, free: 92.54 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007977/0.9411, allocations: 393.9 kB / 477 MB, free: 92.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.413e-05/0.9412, allocations: 35.02 kB / 477.1 MB, free: 92.39 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002391/0.9415, allocations: 345.3 kB / 477.4 MB, free: 92.21 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/0.9417, allocations: 153.2 kB / 477.6 MB, free: 92.14 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.686e-05/0.9417, allocations: 8.625 kB / 477.6 MB, free: 92.14 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.155e-05/0.9418, allocations: 333.2 kB / 477.9 MB, free: 91.83 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006729/0.9425, allocations: 170.7 kB / 478.1 MB, free: 91.83 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007253/0.9432, allocations: 302.6 kB / 478.4 MB, free: 91.68 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007069/0.9439, allocations: 200 kB / 478.6 MB, free: 91.68 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.944, allocations: 0 / 478.6 MB, free: 91.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001678/0.9457, allocations: 0.5285 MB / 479.1 MB, free: 91.63 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002947/0.946, allocations: 1.397 MB / 480.5 MB, free: 90.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.946, allocations: 5.078 kB / 480.5 MB, free: 90.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.371e-05/0.946, allocations: 5.562 kB / 480.5 MB, free: 90.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009426/0.947, allocations: 130.1 kB / 480.6 MB, free: 90.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.831e-05/0.947, allocations: 8.297 kB / 480.6 MB, free: 90.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006729/0.9477, allocations: 63.28 kB / 480.7 MB, free: 90.17 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.1e-05/0.9478, allocations: 24.31 kB / 480.7 MB, free: 90.17 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.9478, allocations: 3 kB / 480.7 MB, free: 90.17 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001416/0.9492, allocations: 469 kB / 481.2 MB, free: 90.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.9493, allocations: 7.391 kB / 481.2 MB, free: 90.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.9493, allocations: 6.5 kB / 481.2 MB, free: 90.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008329/0.9501, allocations: 120.6 kB / 481.3 MB, free: 90.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.9502, allocations: 7.75 kB / 481.3 MB, free: 90.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004082/0.9506, allocations: 53.45 kB / 481.4 MB, free: 90.15 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.501e-05/0.9507, allocations: 19.97 kB / 481.4 MB, free: 90.15 MB / 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 () * 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.0004136/0.9511, allocations: 262.8 kB / 481.6 MB, free: 89.95 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002174/0.9513, allocations: 58.45 kB / 481.7 MB, free: 89.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001675/0.9515, allocations: 60.36 kB / 481.8 MB, free: 89.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.9515, allocations: 4.875 kB / 481.8 MB, free: 89.91 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/0.9515, allocations: 0 / 481.8 MB, free: 89.91 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.9515, allocations: 11.12 kB / 481.8 MB, free: 89.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.9526, allocations: 0.5405 MB / 482.3 MB, free: 89.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.9527, allocations: 0.6562 kB / 482.3 MB, free: 89.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009967/0.9537, allocations: 92.78 kB / 482.4 MB, free: 89.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.976e-06/0.9537, allocations: 2.594 kB / 482.4 MB, free: 89.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.986e-05/0.9538, allocations: 12.09 kB / 482.4 MB, free: 89.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.584e-06/0.9538, allocations: 2.406 kB / 482.4 MB, free: 89.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.9538, allocations: 1 kB / 482.4 MB, free: 89.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002198/0.956, allocations: 0.8012 MB / 483.2 MB, free: 89.44 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003155/0.9563, allocations: 164.2 kB / 483.4 MB, free: 89.32 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.9565, allocations: 11.89 kB / 483.4 MB, free: 89.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006463/0.9571, allocations: 31.7 kB / 483.4 MB, free: 89.32 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.9573, allocations: 34.06 kB / 483.5 MB, free: 89.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.025e-05/0.9573, allocations: 12.98 kB / 483.5 MB, free: 89.31 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005491/0.9579, allocations: 314.3 kB / 483.8 MB, free: 89.22 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.9579, allocations: 3.938 kB / 483.8 MB, free: 89.22 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001178/0.9591, allocations: 225.7 kB / 484 MB, free: 89.19 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 () * 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.002547/0.9617, allocations: 1.421 MB / 485.4 MB, free: 88.33 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002156/0.9639, allocations: 0.6543 MB / 486.1 MB, free: 88.24 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.9639, allocations: 0 / 486.1 MB, free: 88.24 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006401/0.9646, allocations: 197.7 kB / 486.3 MB, free: 88.18 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001296/0.9659, allocations: 138.9 kB / 486.4 MB, free: 88.14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007848/0.9738, allocations: 5.931 MB / 492.3 MB, free: 83.88 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.9742, allocations: 0.8996 MB / 493.2 MB, free: 83.17 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004585/0.9747, allocations: 215.1 kB / 493.5 MB, free: 83.01 MB / 394.7 MB Notification: Performance of SimCode: time 9.21e-07/0.9747, allocations: 0 / 493.5 MB, free: 83.01 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.938/3.913, allocations: 9.11 MB / 0.4908 GB, free: 79.74 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