Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.738/1.738, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003531/0.0003535, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08115/0.08153, allocations: 44.51 MB / 308.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3593/0.4409, allocations: 97.88 MB / 406.3 MB, free: 16.66 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/0.4412, allocations: 73.12 kB / 406.4 MB, free: 16.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3932/0.8344, allocations: 127.3 MB / 0.5212 GB, free: 3.121 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.249e-06/0.8344, allocations: 8 kB / 0.5212 GB, free: 3.113 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.64e-05/0.8345, allocations: 44 kB / 0.5213 GB, free: 3.07 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.3329/1.167, allocations: 3.555 MB / 0.5247 GB, free: 78.61 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/1.167, allocations: 11.34 kB / 0.5248 GB, free: 78.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006814/1.168, allocations: 417.1 kB / 0.5251 GB, free: 78.4 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005629/1.174, allocations: 2.465 MB / 0.5276 GB, free: 77.94 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.894e-05/1.174, allocations: 38.38 kB / 0.5276 GB, free: 77.94 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001855/1.174, allocations: 51.47 kB / 0.5276 GB, free: 77.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002018/1.176, allocations: 0.862 MB / 0.5285 GB, free: 77.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/1.176, allocations: 2.656 kB / 0.5285 GB, free: 77.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001086/1.176, allocations: 21.16 kB / 0.5285 GB, free: 77.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.266e-05/1.176, allocations: 19.22 kB / 0.5285 GB, free: 77.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002186/1.179, allocations: 0.8537 MB / 0.5294 GB, free: 77.82 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007719/1.186, allocations: 3.289 MB / 0.5326 GB, free: 77.31 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001637/1.188, allocations: 0.6139 MB / 0.5332 GB, free: 77.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03733/1.225, allocations: 36.05 MB / 0.5684 GB, free: 50.92 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008773/1.226, allocations: 390.2 kB / 0.5687 GB, free: 50.87 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 4.18e-06/1.226, allocations: 0 / 0.5687 GB, free: 50.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.003199/1.229, allocations: 1.496 MB / 0.5702 GB, free: 50.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.315e-05/1.23, allocations: 265.7 kB / 0.5705 GB, free: 49.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004843/1.234, allocations: 2.706 MB / 0.5731 GB, free: 49.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001272/1.235, allocations: 35.08 kB / 0.5731 GB, free: 49.63 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001214/1.236, allocations: 1.298 MB / 0.5744 GB, free: 49.36 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/1.236, allocations: 175.1 kB / 0.5746 GB, free: 49.28 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.488e-05/1.236, allocations: 13.44 kB / 0.5746 GB, free: 49.28 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.159e-05/1.236, allocations: 347 kB / 0.5749 GB, free: 48.97 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008055/1.237, allocations: 263.2 kB / 0.5752 GB, free: 48.97 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009541/1.238, allocations: 0.6627 MB / 0.5758 GB, free: 48.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000913/1.239, allocations: 345.5 kB / 0.5761 GB, free: 48.45 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-05/1.239, allocations: 7 kB / 0.5762 GB, free: 48.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002287/1.241, allocations: 0.954 MB / 0.5771 GB, free: 48.39 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/1.241, allocations: 13.83 kB / 0.5771 GB, free: 48.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001276/1.241, allocations: 83.09 kB / 0.5772 GB, free: 48.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.095e-05/1.241, allocations: 18.06 kB / 0.5772 GB, free: 48.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008429/1.242, allocations: 219.4 kB / 0.5774 GB, free: 48.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.554e-05/1.242, allocations: 23.38 kB / 0.5774 GB, free: 48.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001873/1.244, allocations: 134.8 kB / 0.5776 GB, free: 48.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001737/1.244, allocations: 63.69 kB / 0.5776 GB, free: 48.36 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.001441/1.246, allocations: 456.2 kB / 0.578 GB, free: 48.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006449/1.247, allocations: 404.8 kB / 0.5784 GB, free: 48.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004208/1.251, allocations: 1.295 MB / 0.5797 GB, free: 47.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/1.251, allocations: 5.562 kB / 0.5797 GB, free: 47.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.198e-06/1.251, allocations: 2.219 kB / 0.5797 GB, free: 47.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.539e-06/1.251, allocations: 3.562 kB / 0.5797 GB, free: 47.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005382/1.256, allocations: 2.34 MB / 0.582 GB, free: 47.56 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001168/1.256, allocations: 72.8 kB / 0.5821 GB, free: 47.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005745/1.257, allocations: 98.86 kB / 0.5822 GB, free: 47.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.291e-06/1.257, allocations: 7.562 kB / 0.5822 GB, free: 47.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-05/1.257, allocations: 30.75 kB / 0.5822 GB, free: 47.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.025e-06/1.257, allocations: 2.75 kB / 0.5822 GB, free: 47.56 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.248e-06/1.257, allocations: 0 / 0.5822 GB, free: 47.56 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003107/1.26, allocations: 1.438 MB / 0.5836 GB, free: 47.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001318/1.262, allocations: 0.5171 MB / 0.5841 GB, free: 46.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005744/1.262, allocations: 10.66 kB / 0.5841 GB, free: 46.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/1.263, allocations: 50.75 kB / 0.5842 GB, free: 46.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/1.264, allocations: 59 kB / 0.5842 GB, free: 46.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.856e-05/1.264, allocations: 39.52 kB / 0.5843 GB, free: 46.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003903/1.268, allocations: 2.071 MB / 0.5863 GB, free: 46.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.04e-06/1.268, allocations: 2.625 kB / 0.5863 GB, free: 46.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00228/1.27, allocations: 0.6767 MB / 0.5869 GB, free: 46.61 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.001445/1.271, allocations: 0.873 MB / 0.5878 GB, free: 46.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001923/1.273, allocations: 0.8578 MB / 0.5886 GB, free: 46.38 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/1.273, allocations: 0 / 0.5886 GB, free: 46.38 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009653/1.274, allocations: 467.1 kB / 0.5891 GB, free: 46.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002689/1.277, allocations: 0.5141 MB / 0.5896 GB, free: 46.22 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00853/1.286, allocations: 5.205 MB / 0.5947 GB, free: 43.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001299/1.287, allocations: 1.782 MB / 0.5964 GB, free: 43.06 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004108/1.287, allocations: 168.3 kB / 0.5966 GB, free: 43.05 MB / 410.7 MB Notification: Performance of SimCode: time 1.528e-06/1.287, allocations: 0 / 0.5966 GB, free: 43.05 MB / 410.7 MB Notification: Performance of Templates: time 0.06069/1.348, allocations: 38.31 MB / 0.634 GB, free: 29.04 MB / 410.7 MB