Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.595/1.595, allocations: 171.1 MB / 186.7 MB, free: 1.051 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003524/0.0003525, allocations: 12 kB / 233.3 MB, free: 2.914 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08095/0.08132, allocations: 38.76 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3894/0.4708, allocations: 93.73 MB / 365.8 MB, free: 11.92 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/0.4711, allocations: 80.77 kB / 365.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5434/1.015, allocations: 91 MB / 456.9 MB, free: 81.81 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.034e-06/1.015, allocations: 0 / 456.9 MB, free: 81.81 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.242e-05/1.015, allocations: 21.59 kB / 456.9 MB, free: 81.81 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.004158/1.019, allocations: 1.955 MB / 458.9 MB, free: 80.62 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/1.019, allocations: 6.812 kB / 458.9 MB, free: 80.62 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001137/1.019, allocations: 67.89 kB / 459 MB, free: 80.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002434/1.019, allocations: 198.9 kB / 459.2 MB, free: 80.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00234/1.022, allocations: 1.234 MB / 460.4 MB, free: 80.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/1.022, allocations: 15.06 kB / 460.4 MB, free: 80.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/1.022, allocations: 29.06 kB / 460.4 MB, free: 80.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/1.023, allocations: 0.5083 MB / 460.9 MB, free: 79.96 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/1.023, allocations: 4 kB / 460.9 MB, free: 79.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.647e-05/1.023, allocations: 9.469 kB / 461 MB, free: 79.95 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/1.023, allocations: 10.84 kB / 461 MB, free: 79.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001672/1.025, allocations: 0.5012 MB / 461.5 MB, free: 79.94 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003709/1.029, allocations: 1.659 MB / 463.1 MB, free: 79.54 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/1.03, allocations: 428.1 kB / 463.5 MB, free: 79.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02149/1.052, allocations: 18.1 MB / 481.6 MB, free: 65.45 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008888/1.053, allocations: 273.3 kB / 481.9 MB, free: 65.36 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.645e-06/1.053, allocations: 3.938 kB / 481.9 MB, free: 65.35 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.003094/1.056, allocations: 0.8917 MB / 482.8 MB, free: 64.99 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/1.056, allocations: 161.2 kB / 483 MB, free: 64.8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001918/1.058, allocations: 1.235 MB / 484.2 MB, free: 64.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.233e-05/1.058, allocations: 29.7 kB / 484.2 MB, free: 64.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000562/1.058, allocations: 0.6409 MB / 484.9 MB, free: 63.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/1.058, allocations: 89.41 kB / 485 MB, free: 63.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.07e-05/1.058, allocations: 10.5 kB / 485 MB, free: 63.61 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.254e-05/1.059, allocations: 338.2 kB / 485.3 MB, free: 63.28 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007331/1.059, allocations: 178.5 kB / 485.5 MB, free: 63.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008185/1.06, allocations: 401.7 kB / 485.9 MB, free: 62.9 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007721/1.061, allocations: 220.2 kB / 486.1 MB, free: 62.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/1.061, allocations: 7.344 kB / 486.1 MB, free: 62.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00199/1.063, allocations: 0.6315 MB / 486.7 MB, free: 62.6 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/1.063, allocations: 7.219 kB / 486.7 MB, free: 62.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.307e-05/1.063, allocations: 46.56 kB / 486.8 MB, free: 62.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004051/1.063, allocations: 130.1 kB / 486.9 MB, free: 62.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007031/1.064, allocations: 121.1 kB / 487 MB, free: 62.56 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006825/1.065, allocations: 0.6852 MB / 487.7 MB, free: 61.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/1.066, allocations: 86.77 kB / 487.8 MB, free: 61.95 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.227e-05/1.066, allocations: 34.16 kB / 487.8 MB, free: 61.95 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0006288/1.067, allocations: 274.8 kB / 488.1 MB, free: 61.73 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002108/1.067, allocations: 190.7 kB / 488.3 MB, free: 61.64 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003136/1.07, allocations: 0.8097 MB / 489.1 MB, free: 61.35 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.869e-06/1.07, allocations: 6.812 kB / 489.1 MB, free: 61.35 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/1.07, allocations: 3.625 kB / 489.1 MB, free: 61.35 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/1.07, allocations: 3.938 kB / 489.1 MB, free: 61.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003197/1.073, allocations: 1.365 MB / 490.5 MB, free: 60.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.482e-05/1.073, allocations: 42.23 kB / 490.5 MB, free: 60.67 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004422/1.074, allocations: 60.98 kB / 490.6 MB, free: 60.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003523/1.074, allocations: 124.6 kB / 490.7 MB, free: 60.64 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.118e-05/1.074, allocations: 19.81 kB / 490.7 MB, free: 60.63 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006772/1.075, allocations: 0.6696 MB / 491.4 MB, free: 60.07 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.075, allocations: 3.594 kB / 491.4 MB, free: 60.07 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001992/1.077, allocations: 0.7795 MB / 492.2 MB, free: 59.65 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005062/1.078, allocations: 292.5 kB / 492.4 MB, free: 59.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002676/1.078, allocations: 11.72 kB / 492.5 MB, free: 59.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007795/1.079, allocations: 36.3 kB / 492.5 MB, free: 59.42 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/1.079, allocations: 45.34 kB / 492.5 MB, free: 59.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.856e-05/1.079, allocations: 18.81 kB / 492.6 MB, free: 59.41 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00158/1.08, allocations: 0.9511 MB / 493.5 MB, free: 59.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.4e-07/1.08, allocations: 3.875 kB / 493.5 MB, free: 59.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001289/1.082, allocations: 356.2 kB / 493.9 MB, free: 58.97 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003248/1.085, allocations: 1.986 MB / 495.8 MB, free: 57.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001897/1.087, allocations: 0.548 MB / 496.4 MB, free: 57.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/1.087, allocations: 0 / 496.4 MB, free: 57.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/1.088, allocations: 320.5 kB / 496.7 MB, free: 57.54 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001263/1.089, allocations: 238.9 kB / 496.9 MB, free: 57.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01824/1.108, allocations: 12.42 MB / 0.4974 GB, free: 45.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006162/1.108, allocations: 1.181 MB / 0.4986 GB, free: 44.58 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000812/1.109, allocations: 0.5585 MB / 0.4991 GB, free: 44.07 MB / 346.7 MB Notification: Performance of SimCode: time 1.172e-06/1.109, allocations: 0 / 0.4991 GB, free: 44.07 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.886/3.995, allocations: 30.38 MB / 0.5288 GB, free: 14.95 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat