Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.722/1.722, allocations: 171.1 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005725/0.0005725, allocations: 11.98 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0926/0.09322, allocations: 38.76 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3978/0.4911, allocations: 94.07 MB / 366.2 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000326/0.4915, allocations: 68.66 kB / 366.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6439/1.135, allocations: 129.4 MB / 495.7 MB, free: 65.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.484e-06/1.135, allocations: 0 / 495.7 MB, free: 65.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.285e-05/1.135, allocations: 44 kB / 495.7 MB, free: 65.89 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.008507/1.144, allocations: 3.571 MB / 499.3 MB, free: 62.25 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/1.144, allocations: 8.031 kB / 499.3 MB, free: 62.24 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004006/1.144, allocations: 98.5 kB / 499.4 MB, free: 62.13 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007848/1.145, allocations: 418.9 kB / 499.8 MB, free: 61.72 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006482/1.152, allocations: 2.456 MB / 0.4905 GB, free: 59.19 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.502e-05/1.152, allocations: 37 kB / 0.4905 GB, free: 59.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002104/1.152, allocations: 55.89 kB / 0.4906 GB, free: 59.1 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002197/1.154, allocations: 0.8612 MB / 0.4914 GB, free: 58.21 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.52e-05/1.154, allocations: 0 / 0.4914 GB, free: 58.21 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/1.154, allocations: 24 kB / 0.4914 GB, free: 58.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.849e-05/1.155, allocations: 23.92 kB / 0.4915 GB, free: 58.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002437/1.157, allocations: 0.8592 MB / 0.4923 GB, free: 57.29 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008503/1.166, allocations: 3.287 MB / 0.4955 GB, free: 53.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/1.168, allocations: 0.6219 MB / 0.4961 GB, free: 53.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04551/1.213, allocations: 36.05 MB / 0.5313 GB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001201/1.214, allocations: 389.6 kB / 0.5317 GB, free: 11.71 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.688e-06/1.214, allocations: 0 / 0.5317 GB, free: 11.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.004122/1.218, allocations: 1.489 MB / 0.5331 GB, free: 10.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/1.219, allocations: 265 kB / 0.5334 GB, free: 9.82 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005906/1.225, allocations: 2.706 MB / 0.536 GB, free: 7.121 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000157/1.225, allocations: 37.7 kB / 0.5361 GB, free: 7.078 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001712/1.227, allocations: 1.588 MB / 0.5376 GB, free: 5.477 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002996/1.227, allocations: 173.7 kB / 0.5378 GB, free: 5.305 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.429e-05/1.227, allocations: 20 kB / 0.5378 GB, free: 5.285 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.27e-05/1.227, allocations: 334 kB / 0.5381 GB, free: 4.953 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009929/1.228, allocations: 261.8 kB / 0.5384 GB, free: 4.699 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001158/1.229, allocations: 0.6674 MB / 0.539 GB, free: 3.836 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/1.23, allocations: 348.5 kB / 0.5394 GB, free: 3.496 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.075e-05/1.23, allocations: 4 kB / 0.5394 GB, free: 3.492 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003605/1.234, allocations: 1.28 MB / 0.5406 GB, free: 2.203 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.144e-05/1.234, allocations: 12.61 kB / 0.5406 GB, free: 2.191 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001469/1.234, allocations: 84.84 kB / 0.5407 GB, free: 2.109 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.124e-05/1.234, allocations: 19.98 kB / 0.5407 GB, free: 2.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/1.236, allocations: 211.6 kB / 0.5409 GB, free: 1.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.841e-05/1.236, allocations: 27.88 kB / 0.541 GB, free: 1.855 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002131/1.238, allocations: 134.9 kB / 0.5411 GB, free: 1.723 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002018/1.238, allocations: 60 kB / 0.5411 GB, free: 1.664 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001459/1.239, allocations: 457.5 kB / 0.5416 GB, free: 1.207 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007455/1.24, allocations: 399.1 kB / 0.542 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005747/1.246, allocations: 1.309 MB / 0.5432 GB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.506e-05/1.246, allocations: 4 kB / 0.5432 GB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/1.246, allocations: 3.938 kB / 0.5432 GB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.448e-05/1.246, allocations: 15.94 kB / 0.5433 GB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006973/1.253, allocations: 2.323 MB / 0.5455 GB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001623/1.253, allocations: 67.98 kB / 0.5456 GB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009296/1.254, allocations: 111.9 kB / 0.5457 GB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.967e-06/1.254, allocations: 0 / 0.5457 GB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/1.254, allocations: 39.95 kB / 0.5457 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/1.254, allocations: 0 / 0.5457 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/1.254, allocations: 3.984 kB / 0.5457 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00442/1.259, allocations: 1.435 MB / 0.5471 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001731/1.261, allocations: 0.5156 MB / 0.5476 GB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007451/1.261, allocations: 16 kB / 0.5477 GB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/1.263, allocations: 39.95 kB / 0.5477 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/1.263, allocations: 63.88 kB / 0.5478 GB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/1.263, allocations: 44.05 kB / 0.5478 GB, free: 10.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005465/1.269, allocations: 2.07 MB / 0.5498 GB, free: 8.617 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.269, allocations: 0 / 0.5498 GB, free: 8.617 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002945/1.272, allocations: 0.6672 MB / 0.5505 GB, free: 7.949 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * 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.007507/1.279, allocations: 2.887 MB / 0.5533 GB, free: 5.023 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003218/1.283, allocations: 0.853 MB / 0.5541 GB, free: 4.148 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/1.283, allocations: 0 / 0.5541 GB, free: 4.148 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001448/1.284, allocations: 459.2 kB / 0.5546 GB, free: 3.676 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003146/1.287, allocations: 0.5266 MB / 0.5551 GB, free: 3.145 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.305/1.592, allocations: 27.89 MB / 0.5823 GB, free: 66.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001278/1.594, allocations: 1.782 MB / 0.5841 GB, free: 65.6 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00203/1.596, allocations: 385.2 kB / 0.5844 GB, free: 65.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001978/1.598, allocations: 1.26 MB / 0.5857 GB, free: 65.57 MB / 362.7 MB Notification: Performance of SimCode: time 1.293e-06/1.598, allocations: 0 / 0.5857 GB, free: 65.57 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1555/1.753, allocations: 62.57 MB / 0.6468 GB, free: 31.05 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003354/1.754, allocations: 189.6 kB / 0.6469 GB, free: 30.81 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.931/7.685, allocations: 0 / 0.6469 GB, free: 30.81 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat