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.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_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.966/1.966, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003517/0.0003518, allocations: 8 kB / 264 MB, free: 13.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09503/0.09541, allocations: 44.51 MB / 308.5 MB, free: 0.918 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4309/0.5264, allocations: 98.03 MB / 406.6 MB, free: 12.56 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002193/0.5267, allocations: 76.27 kB / 406.6 MB, free: 12.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9594/1.486, allocations: 193.4 MB / 0.586 GB, free: 72.67 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.735e-06/1.486, allocations: 0 / 0.586 GB, free: 72.67 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001565/1.486, allocations: 88.94 kB / 0.5861 GB, free: 72.67 MB / 410.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.01525/1.502, allocations: 6.07 MB / 0.592 GB, free: 68.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/1.502, allocations: 9.719 kB / 0.592 GB, free: 68.93 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006268/1.502, allocations: 167.1 kB / 0.5922 GB, free: 68.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001518/1.504, allocations: 0.7567 MB / 0.5929 GB, free: 68.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0122/1.516, allocations: 4.555 MB / 0.5974 GB, free: 66.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.879e-05/1.516, allocations: 65.91 kB / 0.5974 GB, free: 66.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004572/1.517, allocations: 102.7 kB / 0.5975 GB, free: 66.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00383/1.52, allocations: 1.532 MB / 0.599 GB, free: 65.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.304e-05/1.52, allocations: 3.938 kB / 0.599 GB, free: 65.74 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000208/1.521, allocations: 35.59 kB / 0.599 GB, free: 65.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.742e-05/1.521, allocations: 43.34 kB / 0.5991 GB, free: 65.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004151/1.525, allocations: 1.516 MB / 0.6006 GB, free: 65.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0157/1.541, allocations: 5.869 MB / 0.6063 GB, free: 62.64 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002823/1.544, allocations: 1.03 MB / 0.6073 GB, free: 62.19 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09178/1.635, allocations: 71.58 MB / 0.6772 GB, free: 3.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00188/1.637, allocations: 0.5716 MB / 0.6778 GB, free: 3.164 MB / 426.7 MB Notification: Performance of pre-optimization done (n=85): time 3.997e-06/1.637, allocations: 0 / 0.6778 GB, free: 3.164 MB / 426.7 MB Notification: Performance of matching and sorting (n=85): time 0.006768/1.644, allocations: 2.593 MB / 0.6803 GB, free: 428 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2941/1.938, allocations: 475.9 kB / 0.6808 GB, free: 92.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01237/1.951, allocations: 4.866 MB / 0.6855 GB, free: 91.91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002832/1.951, allocations: 46.67 kB / 0.6856 GB, free: 91.88 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002985/1.954, allocations: 2.354 MB / 0.6879 GB, free: 91.58 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000583/1.955, allocations: 299.6 kB / 0.6881 GB, free: 91.44 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/1.955, allocations: 27.69 kB / 0.6882 GB, free: 91.44 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/1.955, allocations: 370.7 kB / 0.6885 GB, free: 91.13 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001476/1.956, allocations: 419.1 kB / 0.6889 GB, free: 91.12 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00191/1.958, allocations: 1.203 MB / 0.6901 GB, free: 90.13 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001956/1.96, allocations: 0.5848 MB / 0.6907 GB, free: 90.12 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.14e-05/1.96, allocations: 6.688 kB / 0.6907 GB, free: 90.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.005048/1.965, allocations: 1.646 MB / 0.6923 GB, free: 90.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.387e-05/1.965, allocations: 15.16 kB / 0.6923 GB, free: 90.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003407/1.966, allocations: 163.6 kB / 0.6924 GB, free: 90.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.274e-05/1.966, allocations: 43.19 kB / 0.6925 GB, free: 90.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002289/1.968, allocations: 373.6 kB / 0.6928 GB, free: 90.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.013e-05/1.968, allocations: 50.42 kB / 0.6929 GB, free: 90.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003699/1.972, allocations: 209 kB / 0.6931 GB, free: 89.99 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004091/1.972, allocations: 123.7 kB / 0.6932 GB, free: 89.99 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.002812/1.975, allocations: 0.7225 MB / 0.6939 GB, free: 89.87 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001494/1.977, allocations: 0.724 MB / 0.6946 GB, free: 89.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009616/1.986, allocations: 2.28 MB / 0.6969 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.632e-05/1.986, allocations: 11.03 kB / 0.6969 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/1.986, allocations: 0.5625 kB / 0.6969 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.679e-05/1.986, allocations: 4.781 kB / 0.6969 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01052/1.997, allocations: 3.875 MB / 0.7007 GB, free: 88.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002616/1.997, allocations: 136.5 kB / 0.7008 GB, free: 88.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001364/1.999, allocations: 168 kB / 0.7009 GB, free: 88.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.23e-05/1.999, allocations: 4.75 kB / 0.7009 GB, free: 88.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001447/1.999, allocations: 56.7 kB / 0.701 GB, free: 88.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.043e-05/1.999, allocations: 6.156 kB / 0.701 GB, free: 88.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/1.999, allocations: 6.922 kB / 0.701 GB, free: 88.89 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005587/2.005, allocations: 2.321 MB / 0.7033 GB, free: 88.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002722/2.007, allocations: 0.9424 MB / 0.7042 GB, free: 87.67 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001477/2.009, allocations: 16.69 kB / 0.7042 GB, free: 87.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002697/2.012, allocations: 52.08 kB / 0.7043 GB, free: 87.67 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003869/2.012, allocations: 102.2 kB / 0.7044 GB, free: 87.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001824/2.012, allocations: 67.95 kB / 0.7044 GB, free: 87.67 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008595/2.021, allocations: 3.713 MB / 0.7081 GB, free: 87.42 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.92e-07/2.021, allocations: 0 / 0.7081 GB, free: 87.42 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004327/2.025, allocations: 1.175 MB / 0.7092 GB, free: 87.4 MB / 426.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.008419/2.034, allocations: 4.099 MB / 0.7132 GB, free: 86.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003936/2.038, allocations: 1.47 MB / 0.7146 GB, free: 85.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/2.038, allocations: 0 / 0.7146 GB, free: 85.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001759/2.039, allocations: 0.7919 MB / 0.7154 GB, free: 85.62 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005476/2.045, allocations: 0.9516 MB / 0.7163 GB, free: 85.56 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1724/2.217, allocations: 59.94 MB / 0.7749 GB, free: 41.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002831/2.22, allocations: 2.721 MB / 0.7775 GB, free: 40.17 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003824/2.224, allocations: 2.441 MB / 0.7799 GB, free: 38.25 MB / 426.7 MB Notification: Performance of SimCode: time 1.483e-06/2.224, allocations: 0 / 0.7799 GB, free: 38.25 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.095/7.319, allocations: 93.24 MB / 0.871 GB, free: 85.09 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat