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.InvertersApartRecord.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.InvertersApartRecord,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.091/2.091, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003684, allocations: 16 kB / 264 MB, free: 13.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09696/0.09737, allocations: 44.5 MB / 308.5 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4395/0.5369, allocations: 97.87 MB / 406.4 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.5372, allocations: 75.39 kB / 406.5 MB, free: 12.47 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4333/0.9706, allocations: 125.5 MB / 0.5195 GB, free: 2.875 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.063e-06/0.9706, allocations: 7.984 kB / 0.5195 GB, free: 2.867 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.445e-05/0.9707, allocations: 44 kB / 0.5195 GB, free: 2.824 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.3093/1.28, allocations: 3.427 MB / 0.5229 GB, free: 79.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/1.28, allocations: 7.688 kB / 0.5229 GB, free: 79.36 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003902/1.281, allocations: 101.7 kB / 0.523 GB, free: 79.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008094/1.281, allocations: 399.5 kB / 0.5234 GB, free: 79.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007294/1.289, allocations: 2.393 MB / 0.5257 GB, free: 78.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.641e-05/1.289, allocations: 39.56 kB / 0.5257 GB, free: 78.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002837/1.289, allocations: 52.92 kB / 0.5258 GB, free: 78.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00261/1.292, allocations: 0.8587 MB / 0.5266 GB, free: 78.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/1.292, allocations: 4.281 kB / 0.5266 GB, free: 78.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000119/1.292, allocations: 22.12 kB / 0.5267 GB, free: 78.54 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.623e-05/1.292, allocations: 21.36 kB / 0.5267 GB, free: 78.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003046/1.295, allocations: 0.8612 MB / 0.5275 GB, free: 78.53 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01027/1.305, allocations: 3.19 MB / 0.5306 GB, free: 78.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002162/1.308, allocations: 0.6211 MB / 0.5312 GB, free: 77.99 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04614/1.354, allocations: 36.02 MB / 0.5664 GB, free: 51.63 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001133/1.355, allocations: 387.2 kB / 0.5668 GB, free: 51.58 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.798e-06/1.355, allocations: 3.188 kB / 0.5668 GB, free: 51.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.003868/1.359, allocations: 1.472 MB / 0.5682 GB, free: 50.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.248e-05/1.359, allocations: 272.4 kB / 0.5685 GB, free: 50.65 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004695/1.364, allocations: 2.553 MB / 0.571 GB, free: 50.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001676/1.364, allocations: 36.48 kB / 0.571 GB, free: 50.35 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001249/1.365, allocations: 1.242 MB / 0.5722 GB, free: 50.08 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002644/1.365, allocations: 168.6 kB / 0.5724 GB, free: 50 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.086e-05/1.366, allocations: 18.06 kB / 0.5724 GB, free: 50 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.882e-05/1.366, allocations: 340.5 kB / 0.5727 GB, free: 49.69 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009828/1.367, allocations: 262.5 kB / 0.573 GB, free: 49.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001181/1.368, allocations: 0.6682 MB / 0.5736 GB, free: 49.17 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/1.369, allocations: 352.7 kB / 0.574 GB, free: 49.17 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/1.369, allocations: 5.406 kB / 0.574 GB, free: 49.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00273/1.372, allocations: 0.9501 MB / 0.5749 GB, free: 49.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.051e-05/1.372, allocations: 14.95 kB / 0.5749 GB, free: 49.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001481/1.372, allocations: 80.23 kB / 0.575 GB, free: 49.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.934e-05/1.372, allocations: 18.78 kB / 0.575 GB, free: 49.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/1.373, allocations: 216.4 kB / 0.5752 GB, free: 49.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.565e-05/1.373, allocations: 27.55 kB / 0.5752 GB, free: 49.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002097/1.375, allocations: 124.7 kB / 0.5754 GB, free: 49.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/1.375, allocations: 68.03 kB / 0.5754 GB, free: 49.08 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.001328/1.377, allocations: 438.5 kB / 0.5758 GB, free: 48.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007911/1.378, allocations: 380.3 kB / 0.5762 GB, free: 48.77 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00529/1.383, allocations: 1.3 MB / 0.5775 GB, free: 48.68 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/1.383, allocations: 7.594 kB / 0.5775 GB, free: 48.68 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/1.383, allocations: 0.8125 kB / 0.5775 GB, free: 48.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/1.383, allocations: 0 / 0.5775 GB, free: 48.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005764/1.389, allocations: 2.254 MB / 0.5797 GB, free: 48.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001374/1.389, allocations: 73.92 kB / 0.5797 GB, free: 48.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008561/1.39, allocations: 105.1 kB / 0.5799 GB, free: 48.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.126e-05/1.39, allocations: 3.656 kB / 0.5799 GB, free: 48.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.199e-05/1.39, allocations: 33.59 kB / 0.5799 GB, free: 48.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.324e-06/1.39, allocations: 2.781 kB / 0.5799 GB, free: 48.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/1.39, allocations: 7.062 kB / 0.5799 GB, free: 48.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003847/1.394, allocations: 1.414 MB / 0.5813 GB, free: 47.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00146/1.395, allocations: 0.5508 MB / 0.5818 GB, free: 47.49 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009509/1.396, allocations: 15.33 kB / 0.5818 GB, free: 47.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001842/1.398, allocations: 40.97 kB / 0.5819 GB, free: 47.49 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002745/1.399, allocations: 65.2 kB / 0.5819 GB, free: 47.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/1.399, allocations: 39.97 kB / 0.582 GB, free: 47.49 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004302/1.403, allocations: 1.954 MB / 0.5839 GB, free: 47.31 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.403, allocations: 0 / 0.5839 GB, free: 47.31 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002671/1.406, allocations: 0.6544 MB / 0.5845 GB, free: 47.29 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.005998/1.412, allocations: 2.817 MB / 0.5873 GB, free: 46.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002646/1.414, allocations: 0.8597 MB / 0.5881 GB, free: 46.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/1.414, allocations: 2.188 kB / 0.5881 GB, free: 46.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001248/1.416, allocations: 470.9 kB / 0.5886 GB, free: 45.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003119/1.419, allocations: 0.4949 MB / 0.589 GB, free: 45.94 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05088/1.47, allocations: 26.84 MB / 0.6153 GB, free: 27.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001339/1.471, allocations: 1.734 MB / 0.6169 GB, free: 26.74 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001917/1.473, allocations: 1.218 MB / 0.6181 GB, free: 26.73 MB / 410.7 MB Notification: Performance of SimCode: time 1.193e-06/1.473, allocations: 0 / 0.6181 GB, free: 26.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.824/5.297, allocations: 49.71 MB / 0.6667 GB, free: 10.27 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat