Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.INV3S.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) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.969/1.969, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003629/0.0003633, allocations: 8 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0983/0.09871, allocations: 44.52 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4352/0.5339, allocations: 77.67 MB / 386.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.5343, allocations: 72.72 kB / 386.3 MB, free: 14.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08716/0.6214, allocations: 27.84 MB / 414.1 MB, free: 9.762 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.6215, allocations: 0 / 414.1 MB, free: 9.762 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.399e-05/0.6215, allocations: 3.75 kB / 414.1 MB, free: 9.762 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.0007795/0.6223, allocations: 0.6788 MB / 414.8 MB, free: 9.105 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.6224, allocations: 7.594 kB / 414.8 MB, free: 9.105 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.348e-05/0.6225, allocations: 49.95 kB / 414.9 MB, free: 9.059 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.641e-05/0.6226, allocations: 31.22 kB / 414.9 MB, free: 9.043 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003324/0.6229, allocations: 272 kB / 415.2 MB, free: 8.801 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.6229, allocations: 3.875 kB / 415.2 MB, free: 8.801 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.302e-05/0.623, allocations: 11.28 kB / 415.2 MB, free: 8.801 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000433/0.6234, allocations: 145.3 kB / 415.3 MB, free: 8.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.6235, allocations: 0 / 415.3 MB, free: 8.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.958e-05/0.6235, allocations: 7.031 kB / 415.3 MB, free: 8.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.6235, allocations: 0 / 415.3 MB, free: 8.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002312/0.6238, allocations: 65.77 kB / 415.4 MB, free: 8.719 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008354/0.6246, allocations: 489.9 kB / 415.9 MB, free: 8.359 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002781/0.6249, allocations: 99.02 kB / 416 MB, free: 8.328 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/0.6249, allocations: 0 / 416 MB, free: 8.328 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004092/0.6254, allocations: 236 kB / 416.2 MB, free: 8.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.084e-06/0.6254, allocations: 0 / 416.2 MB, free: 8.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.001283/0.6267, allocations: 0.6589 MB / 416.9 MB, free: 7.742 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.199e-05/0.6268, allocations: 160.8 kB / 417 MB, free: 7.555 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007729/0.6275, allocations: 469.5 kB / 417.5 MB, free: 7.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.284e-05/0.6276, allocations: 29.58 kB / 417.5 MB, free: 7.289 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.51e-05/0.6277, allocations: 159.8 kB / 417.7 MB, free: 7.137 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.347e-05/0.6277, allocations: 30.08 kB / 417.7 MB, free: 7.117 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.328e-05/0.6278, allocations: 9.094 kB / 417.7 MB, free: 7.113 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.77e-05/0.6279, allocations: 317.9 kB / 418 MB, free: 6.797 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002169/0.6281, allocations: 65.52 kB / 418.1 MB, free: 6.785 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002219/0.6283, allocations: 82.92 kB / 418.1 MB, free: 6.758 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002386/0.6286, allocations: 168.7 kB / 418.3 MB, free: 6.625 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.6286, allocations: 0 / 418.3 MB, free: 6.625 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008392/0.6294, allocations: 414.8 kB / 418.7 MB, free: 6.422 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.863e-05/0.6295, allocations: 129.7 kB / 418.8 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.6296, allocations: 0 / 418.8 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.6296, allocations: 3.984 kB / 418.8 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.42e-05/0.6296, allocations: 0 / 418.8 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.6296, allocations: 3.938 kB / 418.8 MB, free: 6.281 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002169/0.6299, allocations: 11.5 kB / 418.9 MB, free: 6.281 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/0.63, allocations: 119.9 kB / 419 MB, free: 6.266 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.0004094/0.6304, allocations: 368.4 kB / 419.3 MB, free: 5.973 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.044e-05/0.6305, allocations: 46.81 kB / 419.4 MB, free: 5.949 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/0.6307, allocations: 64.86 kB / 419.4 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.6307, allocations: 3.984 kB / 419.4 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.6307, allocations: 128 / 419.4 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.6307, allocations: 0 / 419.4 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001317/0.632, allocations: 0.8416 MB / 420.3 MB, free: 5.355 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.6321, allocations: 3.984 kB / 420.3 MB, free: 5.352 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.784e-06/0.6321, allocations: 0 / 420.3 MB, free: 5.352 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.6321, allocations: 3.906 kB / 420.3 MB, free: 5.352 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.79e-05/0.6321, allocations: 19.36 kB / 420.3 MB, free: 5.348 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.6322, allocations: 4 kB / 420.3 MB, free: 5.344 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.6322, allocations: 0 / 420.3 MB, free: 5.344 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009514/0.6331, allocations: 0.5684 MB / 420.9 MB, free: 5.02 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004104/0.6335, allocations: 255.4 kB / 421.1 MB, free: 4.844 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.374e-05/0.6337, allocations: 10.09 kB / 421.1 MB, free: 4.844 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.6339, allocations: 7.656 kB / 421.2 MB, free: 4.844 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.6341, allocations: 33.42 kB / 421.2 MB, free: 4.832 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001424/0.6342, allocations: 130.2 kB / 421.3 MB, free: 4.812 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006079/0.6348, allocations: 386.8 kB / 421.7 MB, free: 4.625 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.6349, allocations: 0 / 421.7 MB, free: 4.625 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004263/0.6353, allocations: 42.34 kB / 421.7 MB, free: 4.625 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.001218/0.6365, allocations: 1.132 MB / 422.9 MB, free: 3.762 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007179/0.6373, allocations: 445.5 kB / 423.3 MB, free: 3.484 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.6373, allocations: 0 / 423.3 MB, free: 3.484 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004048/0.6377, allocations: 389.2 kB / 423.7 MB, free: 3.215 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007574/0.6385, allocations: 101.8 kB / 423.8 MB, free: 3.176 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/0.6416, allocations: 1.686 MB / 425.5 MB, free: 2.16 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003821/0.6421, allocations: 0.8053 MB / 426.3 MB, free: 1.398 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.576e-05/0.6421, allocations: 27.73 kB / 426.3 MB, free: 1.387 MB / 314.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6421, allocations: 0 / 426.3 MB, free: 1.387 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.719/3.362, allocations: 4.399 MB / 430.7 MB, free: 15.25 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.INV3S_res.mat does not exist to compare? outputFormat=mat