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.InvertersApartRecord.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.InvertersApartRecord,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.InvertersApartRecord") Notification: Performance of loadModel(Modelica): time 1.954/1.954, allocations: 194.9 MB / 212.3 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003525/0.0003526, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09716/0.09754, allocations: 44.49 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4554/0.553, allocations: 97.87 MB / 406.8 MB, free: 12.94 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.5534, allocations: 81.69 kB / 406.9 MB, free: 12.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4515/1.005, allocations: 125.5 MB / 0.5199 GB, free: 3.129 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.675e-06/1.005, allocations: 0 / 0.5199 GB, free: 3.129 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000111/1.005, allocations: 44 kB / 0.5199 GB, free: 3.086 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.3061/1.311, allocations: 3.431 MB / 0.5233 GB, free: 79.08 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/1.311, allocations: 11.59 kB / 0.5233 GB, free: 79.08 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008086/1.312, allocations: 396.7 kB / 0.5237 GB, free: 78.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007643/1.32, allocations: 2.387 MB / 0.526 GB, free: 78.42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.224e-05/1.32, allocations: 42.88 kB / 0.526 GB, free: 78.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002786/1.32, allocations: 53.06 kB / 0.5261 GB, free: 78.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00247/1.323, allocations: 0.869 MB / 0.5269 GB, free: 78.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/1.323, allocations: 1.094 kB / 0.5269 GB, free: 78.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001393/1.323, allocations: 18.86 kB / 0.527 GB, free: 78.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.094e-05/1.323, allocations: 25.73 kB / 0.527 GB, free: 78.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003109/1.326, allocations: 0.8528 MB / 0.5278 GB, free: 78.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01063/1.337, allocations: 3.187 MB / 0.5309 GB, free: 77.79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002126/1.339, allocations: 0.6223 MB / 0.5315 GB, free: 77.76 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04838/1.387, allocations: 36.01 MB / 0.5667 GB, free: 51.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001171/1.388, allocations: 397.1 kB / 0.5671 GB, free: 51.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 5.481e-06/1.389, allocations: 3.703 kB / 0.5671 GB, free: 51.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.004024/1.393, allocations: 1.47 MB / 0.5685 GB, free: 50.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.374e-05/1.393, allocations: 273.1 kB / 0.5688 GB, free: 50.42 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005693/1.398, allocations: 3.01 MB / 0.5717 GB, free: 50.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002253/1.399, allocations: 40.64 kB / 0.5718 GB, free: 50.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001337/1.4, allocations: 1.237 MB / 0.573 GB, free: 49.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002734/1.4, allocations: 170.6 kB / 0.5731 GB, free: 49.74 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.787e-05/1.4, allocations: 14.84 kB / 0.5732 GB, free: 49.74 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.429e-05/1.401, allocations: 346.6 kB / 0.5735 GB, free: 49.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009761/1.401, allocations: 256.1 kB / 0.5737 GB, free: 49.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/1.403, allocations: 0.6742 MB / 0.5744 GB, free: 48.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/1.404, allocations: 349.2 kB / 0.5747 GB, free: 48.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/1.404, allocations: 3.75 kB / 0.5747 GB, free: 48.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002733/1.407, allocations: 0.9637 MB / 0.5757 GB, free: 48.85 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/1.407, allocations: 11.45 kB / 0.5757 GB, free: 48.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001692/1.407, allocations: 83.08 kB / 0.5758 GB, free: 48.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.831e-05/1.407, allocations: 18.91 kB / 0.5758 GB, free: 48.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/1.408, allocations: 216.7 kB / 0.576 GB, free: 48.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.841e-05/1.408, allocations: 24.94 kB / 0.576 GB, free: 48.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002267/1.411, allocations: 125.6 kB / 0.5761 GB, free: 48.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002229/1.411, allocations: 65.28 kB / 0.5762 GB, free: 48.82 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.001548/1.412, allocations: 437.2 kB / 0.5766 GB, free: 48.71 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008481/1.413, allocations: 385.2 kB / 0.577 GB, free: 48.51 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005119/1.418, allocations: 1.295 MB / 0.5782 GB, free: 48.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/1.418, allocations: 3.719 kB / 0.5782 GB, free: 48.42 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/1.418, allocations: 0 / 0.5782 GB, free: 48.42 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/1.418, allocations: 6.703 kB / 0.5782 GB, free: 48.42 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006176/1.425, allocations: 2.253 MB / 0.5804 GB, free: 48.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001388/1.425, allocations: 68.72 kB / 0.5805 GB, free: 48.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000866/1.426, allocations: 99.3 kB / 0.5806 GB, free: 48.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/1.426, allocations: 8.047 kB / 0.5806 GB, free: 48.03 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-05/1.426, allocations: 35.88 kB / 0.5806 GB, free: 48.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.743e-06/1.426, allocations: 0 / 0.5806 GB, free: 48.03 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.426, allocations: 5.906 kB / 0.5807 GB, free: 48.03 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003859/1.43, allocations: 1.353 MB / 0.582 GB, free: 47.65 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001482/1.431, allocations: 0.5531 MB / 0.5825 GB, free: 47.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006704/1.432, allocations: 13.56 kB / 0.5825 GB, free: 47.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/1.433, allocations: 48.38 kB / 0.5826 GB, free: 47.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/1.434, allocations: 61.48 kB / 0.5826 GB, free: 47.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/1.434, allocations: 40.53 kB / 0.5827 GB, free: 47.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004056/1.438, allocations: 1.957 MB / 0.5846 GB, free: 47.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.02e-07/1.438, allocations: 0 / 0.5846 GB, free: 47.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002607/1.44, allocations: 0.6485 MB / 0.5852 GB, free: 47.11 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.001737/1.442, allocations: 0.8533 MB / 0.586 GB, free: 47.01 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00278/1.445, allocations: 0.8505 MB / 0.5869 GB, free: 46.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/1.445, allocations: 0 / 0.5869 GB, free: 46.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001248/1.446, allocations: 471.9 kB / 0.5873 GB, free: 46.74 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003142/1.449, allocations: 0.4904 MB / 0.5878 GB, free: 46.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/1.46, allocations: 4.995 MB / 0.5927 GB, free: 44.38 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001249/1.461, allocations: 1.733 MB / 0.5944 GB, free: 43.65 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000513/1.461, allocations: 163.9 kB / 0.5945 GB, free: 43.64 MB / 410.7 MB Notification: Performance of SimCode: time 1.482e-06/1.461, allocations: 0 / 0.5945 GB, free: 43.64 MB / 410.7 MB Notification: Performance of Templates: time 0.07617/1.538, allocations: 36.99 MB / 0.6307 GB, free: 30.24 MB / 410.7 MB