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.InvertersApartRecord.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadModel(Modelica): time 1.617/1.617, allocations: 171.3 MB / 179.2 MB, free: 7.5 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.669e-05/1.675e-05, allocations: 4 kB / 222.5 MB, free: 8.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0706/0.07063, allocations: 38.77 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3164/0.3871, allocations: 93.29 MB / 354.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/0.3873, allocations: 72.14 kB / 354.6 MB, free: 11.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.556/0.9433, allocations: 122.2 MB / 476.9 MB, free: 72.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.054e-06/0.9434, allocations: 0 / 476.9 MB, free: 72.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.58e-05/0.9435, allocations: 48 kB / 476.9 MB, free: 72.55 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.00518/0.9486, allocations: 2.698 MB / 479.6 MB, free: 70.62 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.9487, allocations: 13.81 kB / 479.6 MB, free: 70.61 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005411/0.9493, allocations: 399.5 kB / 480 MB, free: 70.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004441/0.9537, allocations: 2.368 MB / 482.4 MB, free: 68.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.167e-05/0.9538, allocations: 20 kB / 482.4 MB, free: 68.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/0.954, allocations: 35.95 kB / 482.4 MB, free: 68.12 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001317/0.9553, allocations: 0.6861 MB / 483.1 MB, free: 67.44 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.9566, allocations: 0.7206 MB / 483.8 MB, free: 66.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.9566, allocations: 0 / 483.8 MB, free: 66.68 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-05/0.9567, allocations: 7.938 kB / 483.8 MB, free: 66.68 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.788e-05/0.9568, allocations: 19.98 kB / 483.9 MB, free: 66.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006687/0.9635, allocations: 3.083 MB / 487 MB, free: 63.54 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008069/0.9643, allocations: 471.9 kB / 487.4 MB, free: 63.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007957/0.9651, allocations: 0.5732 MB / 488 MB, free: 62.49 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03553/1.001, allocations: 36.14 MB / 0.5118 GB, free: 21.27 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005617/1.001, allocations: 301.8 kB / 0.5121 GB, free: 20.96 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.504e-06/1.001, allocations: 0 / 0.5121 GB, free: 20.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.00167/1.003, allocations: 0.7896 MB / 0.5129 GB, free: 20.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.148e-05/1.003, allocations: 272.9 kB / 0.5132 GB, free: 19.83 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004602/1.008, allocations: 2.318 MB / 0.5154 GB, free: 17.51 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001267/1.008, allocations: 37.64 kB / 0.5155 GB, free: 17.47 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001134/1.009, allocations: 1.232 MB / 0.5167 GB, free: 16.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002218/1.009, allocations: 161.8 kB / 0.5168 GB, free: 16.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.53e-05/1.009, allocations: 0 / 0.5168 GB, free: 16.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.82e-05/1.009, allocations: 346.8 kB / 0.5171 GB, free: 15.72 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003778/1.01, allocations: 178.6 kB / 0.5173 GB, free: 15.55 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005598/1.01, allocations: 0.5742 MB / 0.5179 GB, free: 14.77 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000575/1.011, allocations: 264.8 kB / 0.5181 GB, free: 14.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.942e-06/1.011, allocations: 4 kB / 0.5181 GB, free: 14.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001526/1.013, allocations: 0.7171 MB / 0.5188 GB, free: 13.8 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/1.013, allocations: 12 kB / 0.5188 GB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001292/1.013, allocations: 80.83 kB / 0.5189 GB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.795e-05/1.013, allocations: 20 kB / 0.5189 GB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008389/1.014, allocations: 215.6 kB / 0.5191 GB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.159e-05/1.014, allocations: 27.92 kB / 0.5192 GB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001807/1.016, allocations: 99.09 kB / 0.5193 GB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/1.016, allocations: 71.98 kB / 0.5193 GB, free: 13.28 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.0002085/1.016, allocations: 144.6 kB / 0.5195 GB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005255/1.016, allocations: 383.3 kB / 0.5198 GB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003673/1.02, allocations: 1.123 MB / 0.5209 GB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/1.02, allocations: 11.88 kB / 0.5209 GB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.717e-06/1.02, allocations: 7.984 kB / 0.521 GB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.368e-06/1.02, allocations: 0 / 0.521 GB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004371/1.025, allocations: 2.002 MB / 0.5229 GB, free: 9.562 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000117/1.025, allocations: 67.98 kB / 0.523 GB, free: 9.496 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006094/1.025, allocations: 104 kB / 0.5231 GB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.078e-05/1.025, allocations: 4 kB / 0.5231 GB, free: 9.391 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.343e-05/1.025, allocations: 31.98 kB / 0.5231 GB, free: 9.359 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.976e-06/1.025, allocations: 3.938 kB / 0.5231 GB, free: 9.355 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.841e-06/1.026, allocations: 0 / 0.5231 GB, free: 9.355 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001963/1.027, allocations: 1.194 MB / 0.5243 GB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001216/1.029, allocations: 0.5451 MB / 0.5248 GB, free: 7.531 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005584/1.029, allocations: 11.94 kB / 0.5248 GB, free: 7.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/1.031, allocations: 40.03 kB / 0.5249 GB, free: 7.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/1.031, allocations: 67.91 kB / 0.5249 GB, free: 7.414 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.171e-05/1.031, allocations: 36 kB / 0.525 GB, free: 7.379 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003143/1.034, allocations: 1.717 MB / 0.5266 GB, free: 5.664 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.814e-06/1.034, allocations: 0 / 0.5266 GB, free: 5.664 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002097/1.036, allocations: 0.6242 MB / 0.5272 GB, free: 5.039 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.001389/1.038, allocations: 0.927 MB / 0.5282 GB, free: 4.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001194/1.039, allocations: 0.6655 MB / 0.5288 GB, free: 3.492 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.976e-06/1.039, allocations: 11.64 kB / 0.5288 GB, free: 3.484 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005508/1.039, allocations: 379.1 kB / 0.5292 GB, free: 3.09 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002331/1.042, allocations: 498.6 kB / 0.5296 GB, free: 2.598 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.203/1.245, allocations: 3.182 MB / 0.5328 GB, free: 74.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001697/1.246, allocations: 1.729 MB / 0.5344 GB, free: 74.04 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004401/1.247, allocations: 166 kB / 0.5346 GB, free: 74.04 MB / 346.7 MB Notification: Performance of SimCode: time 2.43e-06/1.247, allocations: 3.156 kB / 0.5346 GB, free: 74.04 MB / 346.7 MB Notification: Performance of Templates: time 0.06843/1.315, allocations: 36.87 MB / 0.5706 GB, free: 68.39 MB / 346.7 MB