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.InvertersExtendedModel.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.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.108/2.108, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003601, allocations: 16 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1231, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4826/0.6058, allocations: 97.89 MB / 406.4 MB, free: 12.62 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.6061, allocations: 77.83 kB / 406.5 MB, free: 12.61 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4208/1.027, allocations: 127.3 MB / 0.5213 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.661e-06/1.027, allocations: 7.875 kB / 0.5213 GB, free: 0.9453 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.481e-05/1.027, allocations: 51.94 kB / 0.5214 GB, free: 0.8945 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.2749/1.302, allocations: 3.558 MB / 0.5248 GB, free: 78.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.143e-05/1.302, allocations: 9.156 kB / 0.5249 GB, free: 78.09 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004029/1.302, allocations: 98.2 kB / 0.5249 GB, free: 78.05 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001353/1.304, allocations: 418.1 kB / 0.5253 GB, free: 77.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007755/1.312, allocations: 2.458 MB / 0.5277 GB, free: 77.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.163e-05/1.312, allocations: 39.08 kB / 0.5278 GB, free: 77.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002385/1.312, allocations: 54.94 kB / 0.5278 GB, free: 77.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002542/1.315, allocations: 0.8638 MB / 0.5287 GB, free: 77.19 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.654e-05/1.315, allocations: 1.812 kB / 0.5287 GB, free: 77.19 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001195/1.315, allocations: 19.39 kB / 0.5287 GB, free: 77.19 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-05/1.315, allocations: 19.55 kB / 0.5287 GB, free: 77.19 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002991/1.318, allocations: 0.8561 MB / 0.5296 GB, free: 77.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009865/1.328, allocations: 3.282 MB / 0.5328 GB, free: 76.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00221/1.33, allocations: 0.6182 MB / 0.5334 GB, free: 76.63 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04765/1.378, allocations: 36.07 MB / 0.5686 GB, free: 50.24 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001186/1.379, allocations: 387.7 kB / 0.569 GB, free: 50.19 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.947e-06/1.379, allocations: 0 / 0.569 GB, free: 50.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.004262/1.383, allocations: 1.486 MB / 0.5704 GB, free: 49.57 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.758e-05/1.383, allocations: 271.1 kB / 0.5707 GB, free: 49.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005579/1.389, allocations: 2.705 MB / 0.5733 GB, free: 48.97 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001747/1.389, allocations: 42 kB / 0.5733 GB, free: 48.94 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001351/1.39, allocations: 1.295 MB / 0.5746 GB, free: 48.63 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002541/1.391, allocations: 166.3 kB / 0.5748 GB, free: 48.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.981e-05/1.391, allocations: 18.84 kB / 0.5748 GB, free: 48.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.402e-05/1.391, allocations: 339.9 kB / 0.5751 GB, free: 48.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009446/1.392, allocations: 268.6 kB / 0.5754 GB, free: 48.22 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001217/1.393, allocations: 0.6647 MB / 0.576 GB, free: 47.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001249/1.394, allocations: 351.8 kB / 0.5764 GB, free: 47.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-05/1.394, allocations: 3.5 kB / 0.5764 GB, free: 47.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00308/1.397, allocations: 0.9514 MB / 0.5773 GB, free: 47.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.868e-05/1.398, allocations: 11.55 kB / 0.5773 GB, free: 47.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001564/1.398, allocations: 84.88 kB / 0.5774 GB, free: 47.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.976e-05/1.398, allocations: 20.97 kB / 0.5774 GB, free: 47.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/1.399, allocations: 214.5 kB / 0.5776 GB, free: 47.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.928e-05/1.399, allocations: 25.58 kB / 0.5776 GB, free: 47.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002406/1.402, allocations: 124 kB / 0.5777 GB, free: 47.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001492/1.402, allocations: 68.59 kB / 0.5778 GB, free: 47.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001367/1.403, allocations: 455.1 kB / 0.5782 GB, free: 47.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007422/1.404, allocations: 400.6 kB / 0.5786 GB, free: 47.27 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005096/1.409, allocations: 1.31 MB / 0.5799 GB, free: 47.16 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/1.409, allocations: 3.938 kB / 0.5799 GB, free: 47.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/1.409, allocations: 3.844 kB / 0.5799 GB, free: 47.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/1.409, allocations: 7 kB / 0.5799 GB, free: 47.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006251/1.415, allocations: 2.328 MB / 0.5822 GB, free: 46.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001422/1.416, allocations: 69.09 kB / 0.5823 GB, free: 46.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008729/1.416, allocations: 107.9 kB / 0.5824 GB, free: 46.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.756e-06/1.416, allocations: 0 / 0.5824 GB, free: 46.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.879e-05/1.417, allocations: 35.5 kB / 0.5824 GB, free: 46.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/1.417, allocations: 3.25 kB / 0.5824 GB, free: 46.77 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/1.417, allocations: 0 / 0.5824 GB, free: 46.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003857/1.42, allocations: 1.451 MB / 0.5838 GB, free: 46.31 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001416/1.422, allocations: 0.5144 MB / 0.5843 GB, free: 46 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005752/1.422, allocations: 17.38 kB / 0.5843 GB, free: 46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/1.424, allocations: 39.91 kB / 0.5844 GB, free: 46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002317/1.424, allocations: 59.97 kB / 0.5844 GB, free: 46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/1.424, allocations: 41.61 kB / 0.5845 GB, free: 46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003917/1.428, allocations: 2.066 MB / 0.5865 GB, free: 45.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.7e-07/1.428, allocations: 0 / 0.5865 GB, free: 45.82 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002775/1.431, allocations: 0.6673 MB / 0.5871 GB, free: 45.79 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.005512/1.436, allocations: 2.878 MB / 0.5899 GB, free: 44.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002443/1.439, allocations: 0.8558 MB / 0.5908 GB, free: 44.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/1.439, allocations: 0 / 0.5908 GB, free: 44.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00115/1.44, allocations: 473.3 kB / 0.5912 GB, free: 44.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002979/1.443, allocations: 0.5192 MB / 0.5917 GB, free: 44.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04798/1.491, allocations: 27.97 MB / 0.6191 GB, free: 25.08 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001231/1.492, allocations: 1.783 MB / 0.6208 GB, free: 24.35 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001829/1.494, allocations: 1.262 MB / 0.622 GB, free: 24.34 MB / 410.7 MB Notification: Performance of SimCode: time 1.443e-06/1.494, allocations: 0 / 0.622 GB, free: 24.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.521/5.016, allocations: 51.74 MB / 0.6726 GB, free: 4.141 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat