Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.INV3S.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.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.594/1.594, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003542, allocations: 8 kB / 233.3 MB, free: 0.8359 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08134/0.08172, allocations: 38.76 MB / 272.1 MB, free: 9.992 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3557/0.4375, allocations: 72.33 MB / 344.4 MB, free: 10.57 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.4378, allocations: 71.95 kB / 344.5 MB, free: 10.5 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1028/0.5407, allocations: 28.29 MB / 372.8 MB, free: 14.29 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5407, allocations: 0 / 372.8 MB, free: 14.29 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.316e-05/0.5407, allocations: 4 kB / 372.8 MB, free: 14.29 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000844/0.5416, allocations: 0.6684 MB / 373.5 MB, free: 13.55 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.5416, allocations: 12.02 kB / 373.5 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.884e-05/0.5417, allocations: 46.56 kB / 373.5 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.254e-05/0.5418, allocations: 35.53 kB / 373.6 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003784/0.5422, allocations: 261.4 kB / 373.8 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.5423, allocations: 12 kB / 373.8 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.221e-05/0.5423, allocations: 8 kB / 373.8 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004566/0.5428, allocations: 157.4 kB / 374 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.5428, allocations: 0 / 374 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.933e-05/0.5429, allocations: 4 kB / 374 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.5429, allocations: 3.938 kB / 374 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002513/0.5432, allocations: 67.97 kB / 374.1 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009745/0.5441, allocations: 472.5 kB / 374.5 MB, free: 12.38 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.5445, allocations: 106.5 kB / 374.6 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.107e-05/0.5445, allocations: 0 / 374.6 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004668/0.545, allocations: 230.6 kB / 374.8 MB, free: 12.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.074e-06/0.545, allocations: 0 / 374.8 MB, free: 12.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.001455/0.5465, allocations: 0.6505 MB / 375.5 MB, free: 11.3 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.5466, allocations: 162.2 kB / 375.7 MB, free: 11.11 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009398/0.5475, allocations: 472.4 kB / 376.1 MB, free: 10.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.583e-05/0.5476, allocations: 29.7 kB / 376.1 MB, free: 10.6 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.991e-05/0.5477, allocations: 163.6 kB / 376.3 MB, free: 10.44 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.185e-05/0.5478, allocations: 35.62 kB / 376.3 MB, free: 10.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.27e-05/0.5478, allocations: 4 kB / 376.3 MB, free: 10.4 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.548, allocations: 318.8 kB / 376.7 MB, free: 10.08 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002514/0.5482, allocations: 63.95 kB / 376.7 MB, free: 10.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002513/0.5485, allocations: 77.67 kB / 376.8 MB, free: 9.938 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.5488, allocations: 179.2 kB / 377 MB, free: 9.738 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.5488, allocations: 3.953 kB / 377 MB, free: 9.734 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009747/0.5498, allocations: 408.4 kB / 377.4 MB, free: 9.305 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001101/0.5499, allocations: 126.8 kB / 377.5 MB, free: 9.156 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.55, allocations: 0 / 377.5 MB, free: 9.156 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.55, allocations: 0 / 377.5 MB, free: 9.156 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.366e-05/0.55, allocations: 4 kB / 377.5 MB, free: 9.152 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.55, allocations: 4.094 kB / 377.5 MB, free: 9.148 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002297/0.5503, allocations: 15.94 kB / 377.5 MB, free: 9.133 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000192/0.5505, allocations: 119.9 kB / 377.6 MB, free: 9.016 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.iNV3S.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0005423/0.551, allocations: 358.2 kB / 378 MB, free: 8.629 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.045e-05/0.5511, allocations: 47.7 kB / 378 MB, free: 8.582 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001691/0.5513, allocations: 59.16 kB / 378.1 MB, free: 8.523 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.5513, allocations: 4 kB / 378.1 MB, free: 8.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.5513, allocations: 0 / 378.1 MB, free: 8.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.5514, allocations: 3.984 kB / 378.1 MB, free: 8.516 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001586/0.553, allocations: 0.8484 MB / 378.9 MB, free: 7.586 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.553, allocations: 0 / 378.9 MB, free: 7.586 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.819e-06/0.553, allocations: 3.938 kB / 379 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.553, allocations: 0 / 379 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.637e-05/0.5531, allocations: 31.97 kB / 379 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.5531, allocations: 0 / 379 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.5531, allocations: 3.984 kB / 379 MB, free: 7.547 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.5543, allocations: 0.5641 MB / 379.6 MB, free: 6.941 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005092/0.5548, allocations: 248.4 kB / 379.8 MB, free: 6.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.45e-05/0.5549, allocations: 11.94 kB / 379.8 MB, free: 6.668 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/0.5552, allocations: 19.98 kB / 379.8 MB, free: 6.648 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001817/0.5554, allocations: 31.97 kB / 379.9 MB, free: 6.617 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001888/0.5556, allocations: 119.8 kB / 380 MB, free: 6.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007569/0.5563, allocations: 390.8 kB / 380.4 MB, free: 6.117 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5564, allocations: 0 / 380.4 MB, free: 6.117 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004512/0.5568, allocations: 44 kB / 380.4 MB, free: 6.074 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,iNV3S.yy,iNV3S.nextstate,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,iNV3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.001551/0.5584, allocations: 1.117 MB / 381.5 MB, free: 4.906 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008255/0.5592, allocations: 445.5 kB / 381.9 MB, free: 4.422 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5592, allocations: 0 / 381.9 MB, free: 4.422 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005163/0.5598, allocations: 385.6 kB / 382.3 MB, free: 3.996 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007908/0.5606, allocations: 103.2 kB / 382.4 MB, free: 3.898 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003767/0.5644, allocations: 1.666 MB / 384.1 MB, free: 2.168 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005751/0.565, allocations: 0.8103 MB / 384.9 MB, free: 1.332 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.719e-05/0.5651, allocations: 27.38 kB / 384.9 MB, free: 1.305 MB / 314.7 MB Notification: Performance of SimCode: time 1.372e-06/0.5651, allocations: 0 / 384.9 MB, free: 1.305 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.555/3.12, allocations: 4.309 MB / 389.2 MB, free: 12.95 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.INV3S_res.mat does not exist to compare? outputFormat=mat