Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Inverter.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.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.154/2.154, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003879/0.0003879, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09648/0.09691, allocations: 44.5 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4442/0.5412, allocations: 97.56 MB / 406.1 MB, free: 12.6 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.5415, allocations: 73.47 kB / 406.2 MB, free: 12.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2908/0.8324, allocations: 89.48 MB / 495.6 MB, free: 7.914 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.8324, allocations: 4 kB / 495.7 MB, free: 7.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.609e-05/0.8325, allocations: 20 kB / 495.7 MB, free: 7.891 MB / 378.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.00516/0.8377, allocations: 1.953 MB / 497.6 MB, free: 5.875 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.8377, allocations: 8.031 kB / 497.6 MB, free: 5.867 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001778/0.8379, allocations: 66.53 kB / 497.7 MB, free: 5.793 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000312/0.8382, allocations: 197.6 kB / 497.9 MB, free: 5.598 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003105/0.8414, allocations: 1.239 MB / 499.1 MB, free: 4.289 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.655e-05/0.8414, allocations: 20.56 kB / 499.1 MB, free: 4.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.8416, allocations: 24 kB / 499.2 MB, free: 4.246 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/0.8432, allocations: 0.5064 MB / 499.7 MB, free: 3.719 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.8432, allocations: 0 / 499.7 MB, free: 3.719 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.369e-05/0.8433, allocations: 16 kB / 499.7 MB, free: 3.703 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.325e-05/0.8434, allocations: 8 kB / 499.7 MB, free: 3.695 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00193/0.8453, allocations: 0.502 MB / 0.4885 GB, free: 3.195 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004679/0.85, allocations: 1.643 MB / 0.4901 GB, free: 1.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.8518, allocations: 427.1 kB / 0.4905 GB, free: 1.055 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02851/0.8804, allocations: 18.11 MB / 0.5082 GB, free: 12.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001051/0.8815, allocations: 275.2 kB / 0.5084 GB, free: 12.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 5.541e-06/0.8815, allocations: 0 / 0.5084 GB, free: 12.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=29): time 0.003763/0.8853, allocations: 0.9001 MB / 0.5093 GB, free: 11.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/0.8854, allocations: 162.2 kB / 0.5095 GB, free: 10.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002887/0.8883, allocations: 1.231 MB / 0.5107 GB, free: 9.684 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001188/0.8885, allocations: 29.7 kB / 0.5107 GB, free: 9.648 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008292/0.8894, allocations: 0.631 MB / 0.5113 GB, free: 9.016 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001963/0.8896, allocations: 94.73 kB / 0.5114 GB, free: 8.922 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.872e-05/0.8896, allocations: 12 kB / 0.5114 GB, free: 8.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.8898, allocations: 334.8 kB / 0.5117 GB, free: 8.574 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009198/0.8908, allocations: 177 kB / 0.5119 GB, free: 8.402 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001082/0.8919, allocations: 399.8 kB / 0.5123 GB, free: 7.906 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000896/0.8928, allocations: 220 kB / 0.5125 GB, free: 7.691 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.872e-06/0.8928, allocations: 0 / 0.5125 GB, free: 7.691 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002362/0.8952, allocations: 0.6443 MB / 0.5131 GB, free: 7.039 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.175e-05/0.8953, allocations: 8.625 kB / 0.5131 GB, free: 7.031 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001019/0.8954, allocations: 43.98 kB / 0.5132 GB, free: 6.988 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004786/0.8959, allocations: 132.8 kB / 0.5133 GB, free: 6.855 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007842/0.8967, allocations: 120 kB / 0.5134 GB, free: 6.738 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001002/0.8977, allocations: 0.6773 MB / 0.5141 GB, free: 6.035 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/0.899, allocations: 83.47 kB / 0.5142 GB, free: 5.953 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001206/0.8991, allocations: 43.92 kB / 0.5142 GB, free: 5.91 MB / 410.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.0008007/0.8999, allocations: 277.6 kB / 0.5145 GB, free: 5.629 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003521/0.9003, allocations: 189.7 kB / 0.5146 GB, free: 5.441 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003723/0.904, allocations: 0.8166 MB / 0.5154 GB, free: 4.617 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.9041, allocations: 0 / 0.5154 GB, free: 4.617 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.9041, allocations: 4 kB / 0.5155 GB, free: 4.613 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.9041, allocations: 0 / 0.5155 GB, free: 4.613 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004152/0.9083, allocations: 1.378 MB / 0.5168 GB, free: 3.164 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.232e-05/0.9084, allocations: 35.98 kB / 0.5168 GB, free: 3.129 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000475/0.9089, allocations: 63.95 kB / 0.5169 GB, free: 3.066 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004044/0.9093, allocations: 124.8 kB / 0.517 GB, free: 2.941 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-05/0.9094, allocations: 15.98 kB / 0.517 GB, free: 2.926 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000862/0.9103, allocations: 0.6773 MB / 0.5177 GB, free: 2.223 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.9103, allocations: 0 / 0.5177 GB, free: 2.223 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.9127, allocations: 0.7742 MB / 0.5184 GB, free: 1.402 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006892/0.9134, allocations: 290.7 kB / 0.5187 GB, free: 1.098 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002756/0.9137, allocations: 8 kB / 0.5187 GB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008262/0.9145, allocations: 39.95 kB / 0.5188 GB, free: 1.051 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/0.9147, allocations: 39.95 kB / 0.5188 GB, free: 1.012 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.289e-05/0.9148, allocations: 23.98 kB / 0.5188 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001985/0.9168, allocations: 0.9497 MB / 0.5198 GB, free: 20 kB / 410.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.9168, allocations: 0 / 0.5198 GB, free: 20 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.2699/1.187, allocations: 360.3 kB / 0.5201 GB, free: 100.4 MB / 410.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.003954/1.191, allocations: 1.991 MB / 0.522 GB, free: 99.47 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002458/1.193, allocations: 0.5429 MB / 0.5226 GB, free: 99.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/1.193, allocations: 1.125 kB / 0.5226 GB, free: 99.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/1.195, allocations: 311.9 kB / 0.5229 GB, free: 99.34 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/1.196, allocations: 244.9 kB / 0.5231 GB, free: 99.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03337/1.23, allocations: 12.41 MB / 0.5352 GB, free: 91.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001404/1.231, allocations: 1.186 MB / 0.5364 GB, free: 90.65 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001364/1.232, allocations: 0.5586 MB / 0.5369 GB, free: 90.65 MB / 410.7 MB Notification: Performance of SimCode: time 1.863e-06/1.233, allocations: 0 / 0.5369 GB, free: 90.65 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.473/4.706, allocations: 30.37 MB / 0.5666 GB, free: 89.54 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat