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.494/2.494, allocations: 235 MB / 248.1 MB, free: 14.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.516e-05/3.52e-05, allocations: 4 kB / 309.8 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4467/0.4468, allocations: 54.85 MB / 364.6 MB, free: 5.398 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1824/0.6293, allocations: 88.41 MB / 453 MB, free: 7.992 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.6296, allocations: 67.97 kB / 453.1 MB, free: 7.926 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0709/0.7005, allocations: 13.27 MB / 466.4 MB, free: 10.64 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.7006, allocations: 0 / 466.4 MB, free: 10.64 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.105e-05/0.7007, allocations: 23.94 kB / 466.4 MB, free: 10.62 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.002309/0.703, allocations: 0.8099 MB / 467.2 MB, free: 9.758 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.798e-05/0.7031, allocations: 12.03 kB / 467.2 MB, free: 9.746 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002116/0.7033, allocations: 82.52 kB / 467.3 MB, free: 9.656 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002773/0.7036, allocations: 79.06 kB / 467.4 MB, free: 9.578 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001238/0.7048, allocations: 460.1 kB / 467.8 MB, free: 9.086 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.666e-05/0.7049, allocations: 44.95 kB / 467.9 MB, free: 9.043 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001385/0.7051, allocations: 56.66 kB / 467.9 MB, free: 8.988 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001698/0.7068, allocations: 446.6 kB / 468.4 MB, free: 8.531 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.532e-05/0.7068, allocations: 0 / 468.4 MB, free: 8.531 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/0.707, allocations: 20 kB / 468.4 MB, free: 8.512 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.478e-05/0.707, allocations: 12 kB / 468.4 MB, free: 8.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.7082, allocations: 294.8 kB / 468.7 MB, free: 8.211 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007076/0.7153, allocations: 1.778 MB / 470.5 MB, free: 6.348 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.7168, allocations: 362.6 kB / 470.8 MB, free: 5.977 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005034/0.7174, allocations: 141.6 kB / 471 MB, free: 5.832 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.692e-05/0.7174, allocations: 11.98 kB / 471 MB, free: 5.82 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.327e-05/0.7175, allocations: 34.56 kB / 471 MB, free: 5.777 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 4.889e-06/0.7175, allocations: 4 kB / 471 MB, free: 5.773 MB / 394.7 MB Notification: Performance of matching and sorting (n=38): time 0.001424/0.719, allocations: 342 kB / 471.3 MB, free: 5.43 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.155e-05/0.7191, allocations: 106.8 kB / 471.4 MB, free: 5.301 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009931/0.7201, allocations: 400 kB / 471.8 MB, free: 4.906 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.739e-05/0.7202, allocations: 34.92 kB / 471.9 MB, free: 4.867 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003696/0.7206, allocations: 346.5 kB / 472.2 MB, free: 4.527 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002374/0.7208, allocations: 145.8 kB / 472.3 MB, free: 4.383 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.767e-05/0.7209, allocations: 12 kB / 472.4 MB, free: 4.371 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.7211, allocations: 331.4 kB / 472.7 MB, free: 4.039 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005902/0.7217, allocations: 125.1 kB / 472.8 MB, free: 3.918 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007879/0.7225, allocations: 260.1 kB / 473.1 MB, free: 3.609 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007172/0.7233, allocations: 167 kB / 473.2 MB, free: 3.449 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.333e-06/0.7233, allocations: 0 / 473.2 MB, free: 3.449 MB / 394.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001765/0.7251, allocations: 456.7 kB / 473.7 MB, free: 2.996 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007682/0.7259, allocations: 1.391 MB / 475.1 MB, free: 1.496 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.042e-05/0.7259, allocations: 4 kB / 475.1 MB, free: 1.492 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.333e-05/0.726, allocations: 8 kB / 475.1 MB, free: 1.484 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/0.7273, allocations: 128.8 kB / 475.2 MB, free: 1.359 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.212e-05/0.7273, allocations: 11.94 kB / 475.2 MB, free: 1.348 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009129/0.7282, allocations: 55.58 kB / 475.3 MB, free: 1.293 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.871e-05/0.7283, allocations: 23.98 kB / 475.3 MB, free: 1.27 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.7284, allocations: 4 kB / 475.3 MB, free: 1.266 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001572/0.7299, allocations: 403.3 kB / 475.7 MB, free: 0.8711 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.73, allocations: 3.984 kB / 475.7 MB, free: 0.8672 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.306e-05/0.73, allocations: 11.95 kB / 475.7 MB, free: 0.8555 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001307/0.7313, allocations: 116.3 kB / 475.8 MB, free: 0.7422 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.63e-05/0.7314, allocations: 19.94 kB / 475.8 MB, free: 0.7227 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006253/0.732, allocations: 51.61 kB / 475.9 MB, free: 0.6719 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.08e-05/0.7321, allocations: 23.94 kB / 475.9 MB, free: 0.6484 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 () * 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.0002684/0.7324, allocations: 128.9 kB / 476 MB, free: 0.5156 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003116/0.7328, allocations: 59.33 kB / 476.1 MB, free: 468 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002576/0.733, allocations: 53.22 kB / 476.1 MB, free: 412 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.53e-05/0.7331, allocations: 11.95 kB / 476.1 MB, free: 400 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/0.7331, allocations: 7.938 kB / 476.2 MB, free: 392 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.7331, allocations: 3.984 kB / 476.2 MB, free: 388 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00165/0.7348, allocations: 0.5438 MB / 476.7 MB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.7348, allocations: 4 kB / 476.7 MB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001414/0.7363, allocations: 87.88 kB / 476.8 MB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.099e-05/0.7363, allocations: 0 / 476.8 MB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.929e-05/0.7364, allocations: 16 kB / 476.8 MB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-05/0.7364, allocations: 4 kB / 476.8 MB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.7364, allocations: 3.953 kB / 476.8 MB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/0.7384, allocations: 0.6729 MB / 477.5 MB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004209/0.7389, allocations: 160.5 kB / 477.6 MB, free: 14.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.7391, allocations: 11.94 kB / 477.7 MB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009367/0.74, allocations: 39.92 kB / 477.7 MB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.7402, allocations: 31.95 kB / 477.7 MB, free: 14.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-05/0.7403, allocations: 12 kB / 477.7 MB, free: 14.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007582/0.741, allocations: 305.6 kB / 478 MB, free: 14.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.7411, allocations: 0 / 478 MB, free: 14.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001663/0.7427, allocations: 219.2 kB / 478.3 MB, free: 14.2 MB / 410.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.00248/0.7452, allocations: 1.312 MB / 479.6 MB, free: 12.85 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002206/0.7475, allocations: 0.5427 MB / 480.1 MB, free: 12.31 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.7475, allocations: 1.75 kB / 480.1 MB, free: 12.31 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006076/0.7481, allocations: 152 kB / 480.3 MB, free: 12.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/0.7501, allocations: 148.9 kB / 480.4 MB, free: 12.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004142/0.7543, allocations: 1.147 MB / 481.6 MB, free: 10.81 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007437/0.755, allocations: 0.8987 MB / 482.5 MB, free: 9.883 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006788/0.7557, allocations: 219.4 kB / 482.7 MB, free: 9.668 MB / 410.7 MB Notification: Performance of SimCode: time 1.643e-06/0.7557, allocations: 0 / 482.7 MB, free: 9.668 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.634/3.39, allocations: 9.052 MB / 491.7 MB, free: 0.6211 MB / 410.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