Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadModel(Modelica): time 1.657/1.657, allocations: 171.2 MB / 184.2 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.806e-05/3.835e-05, allocations: 0 / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2298, allocations: 38.77 MB / 267.6 MB, free: 9.449 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.314/0.5438, allocations: 93.98 MB / 361.6 MB, free: 80.51 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002117/0.5441, allocations: 73.73 kB / 361.6 MB, free: 80.51 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3693/0.9134, allocations: 129.3 MB / 490.9 MB, free: 2.777 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.3e-06/0.9134, allocations: 0 / 490.9 MB, free: 2.777 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.601e-05/0.9135, allocations: 48 kB / 491 MB, free: 2.73 MB / 346.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.2133/1.127, allocations: 2.781 MB / 493.8 MB, free: 53.17 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/1.127, allocations: 11.86 kB / 493.8 MB, free: 53.17 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000984/1.128, allocations: 417.9 kB / 494.2 MB, free: 52.96 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006049/1.134, allocations: 2.425 MB / 496.6 MB, free: 52.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.347e-05/1.134, allocations: 39.3 kB / 496.6 MB, free: 52.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001752/1.134, allocations: 55.23 kB / 496.7 MB, free: 52.49 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/1.136, allocations: 0.7874 MB / 497.5 MB, free: 52.37 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/1.136, allocations: 0 / 497.5 MB, free: 52.37 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/1.136, allocations: 27.16 kB / 497.5 MB, free: 52.37 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.319e-05/1.136, allocations: 18.72 kB / 497.5 MB, free: 52.37 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/1.137, allocations: 0.7153 MB / 498.2 MB, free: 52.37 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007493/1.145, allocations: 3.275 MB / 0.4898 GB, free: 51.86 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009841/1.146, allocations: 499.8 kB / 0.4902 GB, free: 51.83 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009591/1.147, allocations: 0.5859 MB / 0.4908 GB, free: 51.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03784/1.185, allocations: 36.22 MB / 0.5262 GB, free: 25.45 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006093/1.185, allocations: 314.2 kB / 0.5265 GB, free: 25.39 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.076e-06/1.185, allocations: 3.406 kB / 0.5265 GB, free: 25.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001643/1.187, allocations: 0.822 MB / 0.5273 GB, free: 25.15 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.994e-05/1.187, allocations: 271.6 kB / 0.5275 GB, free: 24.83 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00458/1.192, allocations: 2.667 MB / 0.5301 GB, free: 24.54 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000115/1.192, allocations: 39.22 kB / 0.5302 GB, free: 24.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001104/1.193, allocations: 1.299 MB / 0.5315 GB, free: 24.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002012/1.193, allocations: 169.1 kB / 0.5316 GB, free: 24.15 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.069e-05/1.193, allocations: 20.28 kB / 0.5316 GB, free: 24.15 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.906e-05/1.193, allocations: 342 kB / 0.532 GB, free: 23.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004663/1.194, allocations: 187.8 kB / 0.5321 GB, free: 23.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006332/1.194, allocations: 0.5942 MB / 0.5327 GB, free: 23.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005833/1.195, allocations: 281.6 kB / 0.533 GB, free: 23.32 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/1.195, allocations: 3.906 kB / 0.533 GB, free: 23.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001643/1.197, allocations: 0.817 MB / 0.5338 GB, free: 23.26 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/1.197, allocations: 11.12 kB / 0.5338 GB, free: 23.26 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001288/1.197, allocations: 87.25 kB / 0.5339 GB, free: 23.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.663e-05/1.197, allocations: 18.81 kB / 0.5339 GB, free: 23.26 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009929/1.198, allocations: 214.8 kB / 0.5341 GB, free: 23.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.591e-05/1.198, allocations: 20.81 kB / 0.5341 GB, free: 23.26 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002056/1.2, allocations: 130.4 kB / 0.5342 GB, free: 23.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001522/1.2, allocations: 59.94 kB / 0.5343 GB, free: 23.23 MB / 346.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 () * 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.0002326/1.201, allocations: 168.6 kB / 0.5345 GB, free: 23.12 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005665/1.201, allocations: 401.1 kB / 0.5348 GB, free: 22.92 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003806/1.205, allocations: 1.167 MB / 0.536 GB, free: 22.83 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/1.205, allocations: 6.375 kB / 0.536 GB, free: 22.83 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.656e-06/1.205, allocations: 3.938 kB / 0.536 GB, free: 22.83 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.117e-06/1.205, allocations: 0 / 0.536 GB, free: 22.83 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004565/1.21, allocations: 2.202 MB / 0.5381 GB, free: 22.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001198/1.21, allocations: 73.67 kB / 0.5382 GB, free: 22.44 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007148/1.21, allocations: 99.05 kB / 0.5383 GB, free: 22.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.046e-05/1.211, allocations: 5.719 kB / 0.5383 GB, free: 22.44 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-05/1.211, allocations: 34.22 kB / 0.5384 GB, free: 22.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.098e-06/1.211, allocations: 3.953 kB / 0.5384 GB, free: 22.44 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.784e-06/1.211, allocations: 3.219 kB / 0.5384 GB, free: 22.44 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002157/1.213, allocations: 1.236 MB / 0.5396 GB, free: 21.98 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001192/1.214, allocations: 0.5164 MB / 0.5401 GB, free: 21.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005072/1.215, allocations: 14.31 kB / 0.5401 GB, free: 21.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001309/1.216, allocations: 47.95 kB / 0.5401 GB, free: 21.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001664/1.216, allocations: 57.98 kB / 0.5402 GB, free: 21.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.848e-05/1.216, allocations: 34.16 kB / 0.5402 GB, free: 21.68 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003787/1.22, allocations: 2.029 MB / 0.5422 GB, free: 21.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.87e-07/1.22, allocations: 4.125 kB / 0.5422 GB, free: 21.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002277/1.222, allocations: 0.6723 MB / 0.5429 GB, free: 21.46 MB / 346.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) * 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.001354/1.224, allocations: 0.8795 MB / 0.5437 GB, free: 21.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001337/1.225, allocations: 0.709 MB / 0.5444 GB, free: 21.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/1.225, allocations: 3.094 kB / 0.5444 GB, free: 21.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006117/1.226, allocations: 396.4 kB / 0.5448 GB, free: 21.11 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002698/1.228, allocations: 0.5219 MB / 0.5453 GB, free: 21.06 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006253/1.235, allocations: 3.346 MB / 0.5486 GB, free: 20 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001289/1.236, allocations: 1.787 MB / 0.5503 GB, free: 19.26 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003836/1.236, allocations: 164.9 kB / 0.5505 GB, free: 19.25 MB / 346.7 MB Notification: Performance of SimCode: time 1.769e-06/1.236, allocations: 3.938 kB / 0.5505 GB, free: 19.25 MB / 346.7 MB Notification: Performance of Templates: time 0.05652/1.293, allocations: 38.3 MB / 0.5879 GB, free: 14.41 MB / 362.7 MB