Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.748/1.748, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003656/0.0003658, allocations: 8 kB / 233.8 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08765/0.08804, allocations: 38.76 MB / 272.5 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4029/0.491, allocations: 94.05 MB / 366.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/0.4913, allocations: 79.72 kB / 366.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6778/1.169, allocations: 129.4 MB / 496.1 MB, free: 66.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.266e-06/1.169, allocations: 0 / 496.1 MB, free: 66.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.521e-05/1.169, allocations: 48 kB / 496.1 MB, free: 66.48 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.009989/1.179, allocations: 3.559 MB / 499.7 MB, free: 62.84 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/1.179, allocations: 12.03 kB / 499.7 MB, free: 62.83 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001004/1.18, allocations: 418.9 kB / 0.4884 GB, free: 62.42 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006802/1.187, allocations: 2.448 MB / 0.4908 GB, free: 59.9 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.517e-05/1.187, allocations: 36.95 kB / 0.4908 GB, free: 59.86 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002256/1.188, allocations: 63.89 kB / 0.4909 GB, free: 59.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002245/1.19, allocations: 0.8612 MB / 0.4917 GB, free: 58.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.625e-05/1.19, allocations: 0 / 0.4917 GB, free: 58.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/1.19, allocations: 20 kB / 0.4917 GB, free: 58.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.04e-05/1.19, allocations: 19.98 kB / 0.4917 GB, free: 58.87 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002567/1.193, allocations: 0.8593 MB / 0.4926 GB, free: 58.01 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009326/1.202, allocations: 3.283 MB / 0.4958 GB, free: 54.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002136/1.204, allocations: 0.6219 MB / 0.4964 GB, free: 54.01 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04577/1.25, allocations: 36.05 MB / 0.5316 GB, free: 12.83 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001197/1.251, allocations: 393.6 kB / 0.532 GB, free: 12.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 5.921e-06/1.251, allocations: 0 / 0.532 GB, free: 12.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.00392/1.255, allocations: 1.493 MB / 0.5334 GB, free: 10.85 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.488e-05/1.255, allocations: 273 kB / 0.5337 GB, free: 10.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006006/1.261, allocations: 3.186 MB / 0.5368 GB, free: 7.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001701/1.262, allocations: 37.7 kB / 0.5368 GB, free: 7.297 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001467/1.263, allocations: 1.294 MB / 0.5381 GB, free: 5.996 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002955/1.263, allocations: 169.7 kB / 0.5383 GB, free: 5.828 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.176e-05/1.263, allocations: 20 kB / 0.5383 GB, free: 5.809 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.276e-05/1.264, allocations: 346.7 kB / 0.5386 GB, free: 5.461 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009867/1.265, allocations: 257.9 kB / 0.5389 GB, free: 5.207 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/1.266, allocations: 0.679 MB / 0.5395 GB, free: 4.332 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/1.267, allocations: 352.5 kB / 0.5399 GB, free: 3.988 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/1.267, allocations: 4 kB / 0.5399 GB, free: 3.984 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002861/1.27, allocations: 0.9481 MB / 0.5408 GB, free: 3.031 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.44e-05/1.27, allocations: 9.094 kB / 0.5408 GB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001534/1.27, allocations: 87.98 kB / 0.5409 GB, free: 2.938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.932e-05/1.27, allocations: 16 kB / 0.5409 GB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/1.271, allocations: 212.1 kB / 0.5411 GB, free: 2.715 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.073e-05/1.272, allocations: 31.81 kB / 0.5411 GB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00216/1.274, allocations: 126.9 kB / 0.5413 GB, free: 2.559 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001962/1.274, allocations: 67.98 kB / 0.5413 GB, free: 2.492 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 () * 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.001577/1.276, allocations: 457 kB / 0.5418 GB, free: 2.039 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007294/1.276, allocations: 399.1 kB / 0.5421 GB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005354/1.282, allocations: 1.298 MB / 0.5434 GB, free: 344 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/1.282, allocations: 4 kB / 0.5434 GB, free: 340 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/1.282, allocations: 3.984 kB / 0.5434 GB, free: 336 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/1.282, allocations: 7.953 kB / 0.5434 GB, free: 328 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00688/1.289, allocations: 2.33 MB / 0.5457 GB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001631/1.289, allocations: 72.02 kB / 0.5458 GB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009379/1.29, allocations: 103.9 kB / 0.5459 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.728e-06/1.29, allocations: 3.938 kB / 0.5459 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001449/1.29, allocations: 43.94 kB / 0.5459 GB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/1.29, allocations: 4 kB / 0.5459 GB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/1.29, allocations: 0 / 0.5459 GB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004588/1.295, allocations: 1.38 MB / 0.5473 GB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001825/1.296, allocations: 0.5156 MB / 0.5478 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001033/1.298, allocations: 15.98 kB / 0.5478 GB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001953/1.3, allocations: 47.98 kB / 0.5478 GB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003416/1.3, allocations: 63.92 kB / 0.5479 GB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/1.3, allocations: 36 kB / 0.5479 GB, free: 11.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005966/1.306, allocations: 2.066 MB / 0.5499 GB, free: 9.531 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.362e-06/1.306, allocations: 0 / 0.5499 GB, free: 9.531 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003065/1.309, allocations: 0.6674 MB / 0.5506 GB, free: 8.863 MB / 362.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.002258/1.311, allocations: 0.8943 MB / 0.5515 GB, free: 7.961 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003141/1.315, allocations: 0.8491 MB / 0.5523 GB, free: 7.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/1.315, allocations: 0 / 0.5523 GB, free: 7.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001435/1.316, allocations: 463.2 kB / 0.5527 GB, free: 6.613 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003442/1.32, allocations: 0.5188 MB / 0.5532 GB, free: 6.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01306/1.333, allocations: 5.204 MB / 0.5583 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2558/1.589, allocations: 1.787 MB / 0.5601 GB, free: 82.47 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005754/1.589, allocations: 166.5 kB / 0.5602 GB, free: 82.47 MB / 362.7 MB Notification: Performance of SimCode: time 1.372e-06/1.589, allocations: 2.562 kB / 0.5602 GB, free: 82.47 MB / 362.7 MB Notification: Performance of Templates: time 0.08613/1.675, allocations: 38.31 MB / 0.5976 GB, free: 76.86 MB / 362.7 MB