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.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_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.67/1.67, allocations: 171.2 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003526/0.0003527, allocations: 11.98 kB / 233.4 MB, free: 2.277 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07927/0.07965, allocations: 38.76 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3682/0.4479, allocations: 93.73 MB / 365.9 MB, free: 11.36 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/0.4482, allocations: 74.78 kB / 365.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5952/1.043, allocations: 90.99 MB / 456.9 MB, free: 82.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.043, allocations: 0 / 456.9 MB, free: 82.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.083e-05/1.044, allocations: 26.59 kB / 457 MB, free: 82.29 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.004682/1.048, allocations: 1.959 MB / 458.9 MB, free: 81.1 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/1.048, allocations: 7.812 kB / 458.9 MB, free: 81.1 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001624/1.048, allocations: 66.17 kB / 459 MB, free: 81.06 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002503/1.049, allocations: 195.2 kB / 459.2 MB, free: 80.96 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002733/1.051, allocations: 1.239 MB / 460.4 MB, free: 80.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/1.052, allocations: 17.97 kB / 460.4 MB, free: 80.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/1.052, allocations: 32.72 kB / 460.5 MB, free: 80.51 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/1.053, allocations: 0.4963 MB / 461 MB, free: 80.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/1.053, allocations: 0 / 461 MB, free: 80.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.988e-05/1.053, allocations: 17.05 kB / 461 MB, free: 80.43 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/1.053, allocations: 15.06 kB / 461 MB, free: 80.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001692/1.055, allocations: 0.4993 MB / 461.5 MB, free: 80.42 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003976/1.059, allocations: 1.659 MB / 463.1 MB, free: 80.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/1.06, allocations: 412.9 kB / 463.6 MB, free: 79.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02257/1.083, allocations: 18.12 MB / 481.7 MB, free: 65.69 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009192/1.084, allocations: 285.3 kB / 481.9 MB, free: 65.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.745e-06/1.084, allocations: 0 / 481.9 MB, free: 65.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.00314/1.087, allocations: 0.8874 MB / 482.8 MB, free: 65.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/1.087, allocations: 164.8 kB / 483 MB, free: 65.04 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001957/1.089, allocations: 1.236 MB / 484.2 MB, free: 64.54 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.503e-05/1.089, allocations: 33.39 kB / 484.3 MB, free: 64.51 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007014/1.09, allocations: 0.7216 MB / 485 MB, free: 63.92 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/1.09, allocations: 90.02 kB / 485.1 MB, free: 63.85 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.225e-05/1.09, allocations: 11.69 kB / 485.1 MB, free: 63.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.395e-05/1.09, allocations: 329.1 kB / 485.4 MB, free: 63.53 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007372/1.091, allocations: 179.1 kB / 485.6 MB, free: 63.49 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008996/1.092, allocations: 400.3 kB / 486 MB, free: 63.15 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007858/1.093, allocations: 228.8 kB / 486.2 MB, free: 63.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/1.093, allocations: 3.375 kB / 486.2 MB, free: 63.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002391/1.095, allocations: 0.7852 MB / 487 MB, free: 62.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/1.095, allocations: 12.62 kB / 487 MB, free: 62.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.549e-05/1.095, allocations: 37.47 kB / 487 MB, free: 62.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004307/1.096, allocations: 137.6 kB / 487.2 MB, free: 62.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007281/1.096, allocations: 121.5 kB / 487.3 MB, free: 62.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007313/1.097, allocations: 0.685 MB / 488 MB, free: 62.15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001206/1.098, allocations: 84.92 kB / 488.1 MB, free: 62.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-05/1.099, allocations: 32.72 kB / 488.1 MB, free: 62.11 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.0007258/1.099, allocations: 273 kB / 488.4 MB, free: 61.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000326/1.1, allocations: 189 kB / 488.5 MB, free: 61.81 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003337/1.103, allocations: 0.8129 MB / 489.3 MB, free: 61.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/1.103, allocations: 3.625 kB / 489.4 MB, free: 61.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/1.103, allocations: 0 / 489.4 MB, free: 61.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/1.103, allocations: 7.594 kB / 489.4 MB, free: 61.52 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003721/1.107, allocations: 1.371 MB / 490.7 MB, free: 60.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.592e-05/1.107, allocations: 37.45 kB / 490.8 MB, free: 60.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004646/1.107, allocations: 60.02 kB / 490.8 MB, free: 60.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003792/1.108, allocations: 120.2 kB / 490.9 MB, free: 60.81 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.501e-05/1.108, allocations: 21.27 kB / 491 MB, free: 60.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007365/1.109, allocations: 0.679 MB / 491.6 MB, free: 60.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/1.109, allocations: 0 / 491.6 MB, free: 60.23 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002339/1.111, allocations: 0.774 MB / 492.4 MB, free: 59.82 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007991/1.112, allocations: 293.8 kB / 492.7 MB, free: 59.6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000403/1.112, allocations: 14.06 kB / 492.7 MB, free: 59.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/1.113, allocations: 42.05 kB / 492.8 MB, free: 59.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001884/1.113, allocations: 39.02 kB / 492.8 MB, free: 59.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.231e-05/1.114, allocations: 20.89 kB / 492.8 MB, free: 59.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001764/1.115, allocations: 0.9508 MB / 493.8 MB, free: 59.2 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.62e-07/1.115, allocations: 0 / 493.8 MB, free: 59.2 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001523/1.117, allocations: 364 kB / 494.1 MB, free: 59.14 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.003649/1.121, allocations: 1.975 MB / 496.1 MB, free: 58.01 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002176/1.123, allocations: 0.5613 MB / 496.7 MB, free: 57.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/1.123, allocations: 0 / 496.7 MB, free: 57.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/1.124, allocations: 305.4 kB / 497 MB, free: 57.71 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002085/1.126, allocations: 241.2 kB / 497.2 MB, free: 57.54 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0275/1.154, allocations: 12.38 MB / 0.4976 GB, free: 45.21 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006047/1.154, allocations: 1.182 MB / 0.4988 GB, free: 44.2 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009769/1.155, allocations: 175.1 kB / 0.4989 GB, free: 44.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007751/1.156, allocations: 0.5576 MB / 0.4995 GB, free: 43.56 MB / 346.7 MB Notification: Performance of SimCode: time 1.684e-06/1.156, allocations: 0 / 0.4995 GB, free: 43.56 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08368/1.24, allocations: 33.22 MB / 0.5319 GB, free: 11.31 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002176/1.24, allocations: 202.2 kB / 0.5321 GB, free: 11.07 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.98/5.22, allocations: 0 / 0.5321 GB, free: 11.07 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat