Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.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.FourInverters,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.182/2.182, allocations: 194.9 MB / 211.1 MB, free: 7.59 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003967/0.0003966, allocations: 15.94 kB / 264.1 MB, free: 2.504 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3115, allocations: 44.5 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1806/0.4922, allocations: 98.02 MB / 406.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/0.4926, allocations: 71.97 kB / 406.7 MB, free: 10.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.214/1.706, allocations: 193.4 MB / 0.586 GB, free: 56.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.597e-06/1.706, allocations: 0 / 0.586 GB, free: 56.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000228/1.707, allocations: 85.34 kB / 0.5861 GB, free: 56.39 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01602/1.723, allocations: 6.065 MB / 0.592 GB, free: 53.08 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/1.723, allocations: 7.375 kB / 0.592 GB, free: 53.08 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007124/1.723, allocations: 163.2 kB / 0.5922 GB, free: 53.04 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001535/1.725, allocations: 0.7563 MB / 0.5929 GB, free: 52.64 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01245/1.737, allocations: 4.558 MB / 0.5974 GB, free: 51.6 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.764e-05/1.738, allocations: 69.69 kB / 0.5974 GB, free: 51.6 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004137/1.738, allocations: 95.66 kB / 0.5975 GB, free: 51.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003798/1.742, allocations: 1.536 MB / 0.599 GB, free: 51.39 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.455e-05/1.742, allocations: 0 / 0.599 GB, free: 51.39 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002017/1.742, allocations: 35.22 kB / 0.5991 GB, free: 51.39 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-05/1.742, allocations: 43.55 kB / 0.5991 GB, free: 51.39 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004052/1.746, allocations: 1.52 MB / 0.6006 GB, free: 51.38 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01575/1.762, allocations: 5.863 MB / 0.6063 GB, free: 50.58 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002872/1.765, allocations: 1.028 MB / 0.6073 GB, free: 50.54 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1133/1.878, allocations: 71.59 MB / 0.6772 GB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001602/1.88, allocations: 0.5779 MB / 0.6778 GB, free: 12.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=85): time 4.628e-06/1.88, allocations: 0 / 0.6778 GB, free: 12.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=85): time 0.006004/1.886, allocations: 2.587 MB / 0.6803 GB, free: 9.469 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002597/1.886, allocations: 485.3 kB / 0.6808 GB, free: 8.887 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0114/1.898, allocations: 4.864 MB / 0.6855 GB, free: 4.828 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003289/1.898, allocations: 41.7 kB / 0.6856 GB, free: 4.781 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004045/1.902, allocations: 2.934 MB / 0.6884 GB, free: 2.074 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005386/1.903, allocations: 299.2 kB / 0.6887 GB, free: 1.816 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/1.903, allocations: 32 kB / 0.6888 GB, free: 1.785 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002774/1.903, allocations: 359.9 kB / 0.6891 GB, free: 17.45 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001536/1.905, allocations: 421.4 kB / 0.6895 GB, free: 17.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001987/1.907, allocations: 1.2 MB / 0.6907 GB, free: 15.63 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002173/1.909, allocations: 0.5862 MB / 0.6913 GB, free: 15.13 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.233e-05/1.909, allocations: 8 kB / 0.6913 GB, free: 15.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.007448/1.917, allocations: 2.252 MB / 0.6935 GB, free: 13.17 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.709e-05/1.917, allocations: 18.5 kB / 0.6935 GB, free: 13.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000385/1.917, allocations: 163.2 kB / 0.6936 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.927e-05/1.917, allocations: 36 kB / 0.6937 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002455/1.92, allocations: 370.5 kB / 0.694 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.127e-05/1.92, allocations: 48.42 kB / 0.6941 GB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004074/1.924, allocations: 213 kB / 0.6943 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005108/1.924, allocations: 127.8 kB / 0.6944 GB, free: 12.33 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.003096/1.927, allocations: 0.7158 MB / 0.6951 GB, free: 11.63 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001764/1.929, allocations: 0.7218 MB / 0.6958 GB, free: 10.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01057/1.94, allocations: 2.297 MB / 0.698 GB, free: 8.977 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-05/1.94, allocations: 4 kB / 0.698 GB, free: 8.973 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/1.94, allocations: 4 kB / 0.698 GB, free: 8.969 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.685e-05/1.94, allocations: 7.938 kB / 0.6981 GB, free: 8.961 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/1.952, allocations: 3.873 MB / 0.7018 GB, free: 5.035 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003139/1.953, allocations: 140 kB / 0.702 GB, free: 4.898 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001471/1.954, allocations: 158.6 kB / 0.7021 GB, free: 4.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.902e-05/1.954, allocations: 11.94 kB / 0.7021 GB, free: 4.738 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002181/1.955, allocations: 60 kB / 0.7022 GB, free: 4.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.19e-05/1.955, allocations: 7.984 kB / 0.7022 GB, free: 4.672 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/1.955, allocations: 0 / 0.7022 GB, free: 4.672 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006703/1.961, allocations: 2.319 MB / 0.7045 GB, free: 2.309 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003148/1.964, allocations: 0.9313 MB / 0.7054 GB, free: 1.336 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001579/1.966, allocations: 19.98 kB / 0.7054 GB, free: 1.316 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003047/1.969, allocations: 55.95 kB / 0.7054 GB, free: 1.262 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000455/1.97, allocations: 99.14 kB / 0.7055 GB, free: 1.172 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002138/1.97, allocations: 67.98 kB / 0.7056 GB, free: 1.105 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01047/1.98, allocations: 3.711 MB / 0.7092 GB, free: 13.43 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.98, allocations: 0 / 0.7092 GB, free: 13.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004763/1.985, allocations: 1.19 MB / 0.7104 GB, free: 12.23 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01052/1.996, allocations: 4.09 MB / 0.7144 GB, free: 8.355 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004789/2.001, allocations: 1.471 MB / 0.7158 GB, free: 6.906 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.365e-06/2.001, allocations: 0 / 0.7158 GB, free: 6.906 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002184/2.003, allocations: 0.7899 MB / 0.7166 GB, free: 6.086 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006173/2.009, allocations: 0.9586 MB / 0.7175 GB, free: 5.129 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4734/2.483, allocations: 59.83 MB / 0.776 GB, free: 57.38 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002928/2.486, allocations: 2.724 MB / 0.7786 GB, free: 56.59 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004265/2.49, allocations: 0.7263 MB / 0.7793 GB, free: 56.55 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003992/2.494, allocations: 2.437 MB / 0.7817 GB, free: 56.54 MB / 442.7 MB Notification: Performance of SimCode: time 2.404e-06/2.494, allocations: 0 / 0.7817 GB, free: 56.54 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.557/3.051, allocations: 107.5 MB / 0.8867 GB, free: 96.72 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002592/3.051, allocations: 179.6 kB / 0.8869 GB, free: 96.48 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.57/12.62, allocations: 4 kB / 0.8869 GB, free: 96.48 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat