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: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadModel(Modelica): time 1.928/1.928, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003745/0.0003746, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0988/0.0992, allocations: 44.5 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4985/0.5978, allocations: 97.88 MB / 406.8 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/0.598, allocations: 86.8 kB / 406.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.489/1.087, allocations: 127.3 MB / 0.5217 GB, free: 1.219 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.839e-06/1.087, allocations: 0 / 0.5217 GB, free: 1.219 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001071/1.087, allocations: 47.94 kB / 0.5218 GB, free: 1.172 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.2913/1.379, allocations: 3.557 MB / 0.5252 GB, free: 78.62 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/1.379, allocations: 7.469 kB / 0.5253 GB, free: 78.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001055/1.38, allocations: 419.1 kB / 0.5257 GB, free: 78.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007481/1.387, allocations: 2.452 MB / 0.5281 GB, free: 77.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.763e-05/1.387, allocations: 38.16 kB / 0.5281 GB, free: 77.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002439/1.388, allocations: 54.34 kB / 0.5281 GB, free: 77.92 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002466/1.39, allocations: 0.866 MB / 0.529 GB, free: 77.81 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/1.39, allocations: 1.547 kB / 0.529 GB, free: 77.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001165/1.39, allocations: 20.92 kB / 0.529 GB, free: 77.81 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.784e-05/1.39, allocations: 19.72 kB / 0.529 GB, free: 77.81 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002877/1.393, allocations: 0.8563 MB / 0.5299 GB, free: 77.81 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009692/1.403, allocations: 3.296 MB / 0.5331 GB, free: 77.27 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002156/1.405, allocations: 0.6132 MB / 0.5337 GB, free: 77.25 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05027/1.455, allocations: 36.06 MB / 0.5689 GB, free: 50.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001177/1.457, allocations: 390 kB / 0.5693 GB, free: 50.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 4.318e-06/1.457, allocations: 0 / 0.5693 GB, free: 50.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.004038/1.461, allocations: 1.491 MB / 0.5707 GB, free: 50.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/1.461, allocations: 268.9 kB / 0.571 GB, free: 49.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007016/1.468, allocations: 3.187 MB / 0.5741 GB, free: 49.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001854/1.468, allocations: 37.98 kB / 0.5741 GB, free: 49.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001509/1.47, allocations: 1.3 MB / 0.5754 GB, free: 49.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002871/1.47, allocations: 166 kB / 0.5756 GB, free: 49.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.163e-05/1.47, allocations: 18.03 kB / 0.5756 GB, free: 49.14 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.051e-05/1.47, allocations: 344.9 kB / 0.5759 GB, free: 48.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009767/1.471, allocations: 262.3 kB / 0.5761 GB, free: 48.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/1.472, allocations: 0.6661 MB / 0.5768 GB, free: 48.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/1.474, allocations: 351.8 kB / 0.5771 GB, free: 48.31 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/1.474, allocations: 7.094 kB / 0.5771 GB, free: 48.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002926/1.477, allocations: 0.9582 MB / 0.5781 GB, free: 48.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/1.477, allocations: 14.89 kB / 0.5781 GB, free: 48.24 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001558/1.477, allocations: 80.69 kB / 0.5782 GB, free: 48.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.967e-05/1.477, allocations: 19.81 kB / 0.5782 GB, free: 48.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/1.478, allocations: 215.3 kB / 0.5784 GB, free: 48.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.903e-05/1.478, allocations: 29.22 kB / 0.5784 GB, free: 48.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002358/1.48, allocations: 117.5 kB / 0.5785 GB, free: 48.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003007/1.481, allocations: 70.73 kB / 0.5786 GB, free: 48.2 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.001819/1.483, allocations: 460 kB / 0.579 GB, free: 48.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001031/1.484, allocations: 405.1 kB / 0.5794 GB, free: 47.87 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005926/1.49, allocations: 1.293 MB / 0.5807 GB, free: 47.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/1.49, allocations: 6.031 kB / 0.5807 GB, free: 47.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/1.49, allocations: 3.094 kB / 0.5807 GB, free: 47.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/1.49, allocations: 3.75 kB / 0.5807 GB, free: 47.77 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007225/1.497, allocations: 2.337 MB / 0.583 GB, free: 47.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001504/1.497, allocations: 74.39 kB / 0.5831 GB, free: 47.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008947/1.498, allocations: 96.08 kB / 0.5831 GB, free: 47.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.09e-05/1.498, allocations: 8.094 kB / 0.5832 GB, free: 47.38 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/1.498, allocations: 34.55 kB / 0.5832 GB, free: 47.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.125e-06/1.498, allocations: 3.906 kB / 0.5832 GB, free: 47.38 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.498, allocations: 0 / 0.5832 GB, free: 47.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004259/1.503, allocations: 1.375 MB / 0.5845 GB, free: 46.99 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001722/1.504, allocations: 0.5273 MB / 0.585 GB, free: 46.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001116/1.506, allocations: 13.38 kB / 0.5851 GB, free: 46.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002023/1.508, allocations: 44.84 kB / 0.5851 GB, free: 46.68 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003143/1.508, allocations: 61.94 kB / 0.5852 GB, free: 46.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/1.508, allocations: 42 kB / 0.5852 GB, free: 46.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004912/1.513, allocations: 2.068 MB / 0.5872 GB, free: 46.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.12e-07/1.513, allocations: 0 / 0.5872 GB, free: 46.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002684/1.516, allocations: 0.6662 MB / 0.5879 GB, free: 46.46 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.001829/1.518, allocations: 0.873 MB / 0.5887 GB, free: 46.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002776/1.52, allocations: 0.855 MB / 0.5896 GB, free: 46.21 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/1.521, allocations: 6.062 kB / 0.5896 GB, free: 46.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/1.522, allocations: 462.2 kB / 0.59 GB, free: 46.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003191/1.525, allocations: 0.5172 MB / 0.5905 GB, free: 46.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01229/1.537, allocations: 5.21 MB / 0.5956 GB, free: 43.62 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001975/1.539, allocations: 1.781 MB / 0.5973 GB, free: 42.89 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005485/1.54, allocations: 167.2 kB / 0.5975 GB, free: 42.88 MB / 410.7 MB Notification: Performance of SimCode: time 1.363e-06/1.54, allocations: 0 / 0.5975 GB, free: 42.88 MB / 410.7 MB Notification: Performance of Templates: time 0.1124/1.652, allocations: 38.31 MB / 0.6349 GB, free: 27.2 MB / 410.7 MB