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.Inverter.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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 1.695/1.695, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003594/0.0003595, allocations: 12 kB / 233.2 MB, free: 3.008 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07133/0.07171, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3168/0.3885, allocations: 93.72 MB / 365.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/0.3888, allocations: 75.39 kB / 365.8 MB, free: 12.35 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4981/0.8869, allocations: 91.01 MB / 456.8 MB, free: 82.14 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.352e-06/0.887, allocations: 0 / 456.8 MB, free: 82.14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.819e-05/0.887, allocations: 18.91 kB / 456.8 MB, free: 82.14 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00368/0.8907, allocations: 1.948 MB / 458.8 MB, free: 80.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.8908, allocations: 9.531 kB / 458.8 MB, free: 80.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002913/0.8911, allocations: 193.5 kB / 459 MB, free: 80.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002343/0.8935, allocations: 1.223 MB / 460.2 MB, free: 80.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.266e-05/0.8935, allocations: 23.83 kB / 460.2 MB, free: 80.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.8936, allocations: 29.17 kB / 460.3 MB, free: 80.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.8948, allocations: 0.5077 MB / 460.8 MB, free: 80.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.8948, allocations: 2.875 kB / 460.8 MB, free: 80.33 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.158e-05/0.8949, allocations: 9.344 kB / 460.8 MB, free: 80.33 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.72e-05/0.8949, allocations: 13.42 kB / 460.8 MB, free: 80.33 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.8962, allocations: 0.5034 MB / 461.3 MB, free: 80.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00368/0.8999, allocations: 1.67 MB / 463 MB, free: 79.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.9011, allocations: 411.2 kB / 463.4 MB, free: 79.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01845/0.9196, allocations: 18.12 MB / 481.5 MB, free: 65.64 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006803/0.9203, allocations: 270.6 kB / 481.7 MB, free: 65.55 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 3.546e-06/0.9203, allocations: 0 / 481.7 MB, free: 65.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.002421/0.9228, allocations: 0.8949 MB / 482.6 MB, free: 65.19 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/0.9229, allocations: 161.8 kB / 482.8 MB, free: 65 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001914/0.9248, allocations: 1.227 MB / 484 MB, free: 64.51 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.825e-05/0.9249, allocations: 36.83 kB / 484.1 MB, free: 64.47 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005041/0.9254, allocations: 0.6355 MB / 484.7 MB, free: 63.88 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.9255, allocations: 100.2 kB / 484.8 MB, free: 63.81 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.85e-05/0.9256, allocations: 11.62 kB / 484.8 MB, free: 63.8 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.516e-05/0.9257, allocations: 329 kB / 485.1 MB, free: 63.48 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006093/0.9263, allocations: 182.4 kB / 485.3 MB, free: 63.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006903/0.927, allocations: 400.1 kB / 485.7 MB, free: 63.1 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006406/0.9276, allocations: 226.8 kB / 485.9 MB, free: 63.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.9277, allocations: 2.094 kB / 485.9 MB, free: 63.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001718/0.9294, allocations: 0.6336 MB / 486.6 MB, free: 62.8 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.9294, allocations: 10.41 kB / 486.6 MB, free: 62.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.12e-05/0.9295, allocations: 37.88 kB / 486.6 MB, free: 62.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003607/0.9299, allocations: 135.6 kB / 486.7 MB, free: 62.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004857/0.9304, allocations: 115.9 kB / 486.8 MB, free: 62.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000671/0.9311, allocations: 0.6866 MB / 487.5 MB, free: 62.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.9322, allocations: 76.11 kB / 487.6 MB, free: 62.15 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.788e-05/0.9323, allocations: 36.94 kB / 487.6 MB, free: 62.15 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.000699/0.933, allocations: 279.1 kB / 487.9 MB, free: 61.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002281/0.9332, allocations: 188.7 kB / 488.1 MB, free: 61.84 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00266/0.9359, allocations: 0.8201 MB / 488.9 MB, free: 61.54 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.098e-06/0.9359, allocations: 3.781 kB / 488.9 MB, free: 61.54 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.656e-06/0.9359, allocations: 3.562 kB / 488.9 MB, free: 61.54 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.936, allocations: 7.609 kB / 488.9 MB, free: 61.54 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003154/0.9391, allocations: 1.367 MB / 490.3 MB, free: 60.87 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.178e-05/0.9392, allocations: 32.12 kB / 490.3 MB, free: 60.87 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003026/0.9395, allocations: 54.84 kB / 490.4 MB, free: 60.87 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003055/0.9399, allocations: 130.6 kB / 490.5 MB, free: 60.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.99e-05/0.9399, allocations: 19.17 kB / 490.5 MB, free: 60.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006215/0.9406, allocations: 0.6738 MB / 491.2 MB, free: 60.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.9406, allocations: 64 / 491.2 MB, free: 60.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001644/0.9422, allocations: 0.7745 MB / 492 MB, free: 59.86 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005272/0.9428, allocations: 287.9 kB / 492.3 MB, free: 59.64 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002543/0.9431, allocations: 16.47 kB / 492.3 MB, free: 59.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006291/0.9437, allocations: 39.72 kB / 492.3 MB, free: 59.62 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.9439, allocations: 43.19 kB / 492.4 MB, free: 59.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.78e-05/0.9439, allocations: 24.22 kB / 492.4 MB, free: 59.61 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001568/0.9455, allocations: 0.9475 MB / 493.3 MB, free: 59.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.49e-07/0.9455, allocations: 3.562 kB / 493.3 MB, free: 59.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001363/0.9469, allocations: 364.9 kB / 493.7 MB, free: 59.17 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001024/0.948, allocations: 0.6333 MB / 494.3 MB, free: 58.99 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001568/0.9495, allocations: 0.5469 MB / 494.9 MB, free: 58.81 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.9496, allocations: 0 / 494.9 MB, free: 58.81 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007821/0.9504, allocations: 323.6 kB / 495.2 MB, free: 58.69 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/0.9517, allocations: 244.3 kB / 495.4 MB, free: 58.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004303/0.956, allocations: 2.54 MB / 498 MB, free: 57.14 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006405/0.9567, allocations: 1.182 MB / 499.1 MB, free: 56.13 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.9569, allocations: 79.44 kB / 499.2 MB, free: 56.05 MB / 346.7 MB Notification: Performance of SimCode: time 1.674e-06/0.957, allocations: 0 / 499.2 MB, free: 56.05 MB / 346.7 MB Notification: Performance of Templates: time 0.03212/0.9891, allocations: 24.24 MB / 0.5112 GB, free: 33.81 MB / 346.7 MB