Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadModel(Modelica): time 1.909/1.909, allocations: 171.2 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003524/0.0003526, allocations: 12 kB / 233.8 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08374/0.08412, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4311/0.5153, allocations: 94.05 MB / 366.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003325/0.5157, allocations: 80.14 kB / 366.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7281/1.244, allocations: 127.5 MB / 494.3 MB, free: 67.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.575e-06/1.244, allocations: 0 / 494.3 MB, free: 67.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.894e-05/1.244, allocations: 48 kB / 494.3 MB, free: 67.11 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.008299/1.252, allocations: 3.422 MB / 497.8 MB, free: 63.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/1.252, allocations: 8.031 kB / 497.8 MB, free: 63.61 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006904/1.253, allocations: 399.1 kB / 498.1 MB, free: 63.21 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006033/1.259, allocations: 2.402 MB / 0.4888 GB, free: 60.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.878e-05/1.259, allocations: 40.94 kB / 0.4889 GB, free: 60.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001933/1.259, allocations: 52 kB / 0.4889 GB, free: 60.65 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002152/1.262, allocations: 0.8573 MB / 0.4897 GB, free: 59.76 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/1.262, allocations: 0 / 0.4897 GB, free: 59.76 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/1.262, allocations: 27.98 kB / 0.4898 GB, free: 59.73 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.85e-05/1.262, allocations: 19.98 kB / 0.4898 GB, free: 59.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002428/1.264, allocations: 0.8593 MB / 0.4906 GB, free: 58.85 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009114/1.273, allocations: 3.189 MB / 0.4937 GB, free: 55.58 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001969/1.275, allocations: 0.6181 MB / 0.4943 GB, free: 54.95 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06006/1.335, allocations: 36.02 MB / 0.5295 GB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001543/1.337, allocations: 381.7 kB / 0.5299 GB, free: 13.4 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 5.691e-06/1.337, allocations: 0 / 0.5299 GB, free: 13.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.00522/1.342, allocations: 1.481 MB / 0.5313 GB, free: 11.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/1.342, allocations: 277 kB / 0.5316 GB, free: 11.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007461/1.35, allocations: 3.011 MB / 0.5345 GB, free: 8.484 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001908/1.35, allocations: 37.7 kB / 0.5346 GB, free: 8.441 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002163/1.352, allocations: 1.501 MB / 0.536 GB, free: 6.93 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003402/1.353, allocations: 161.7 kB / 0.5362 GB, free: 6.77 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.418e-05/1.353, allocations: 16 kB / 0.5362 GB, free: 6.754 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001096/1.353, allocations: 338 kB / 0.5365 GB, free: 6.418 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001355/1.354, allocations: 261.8 kB / 0.5368 GB, free: 6.164 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001599/1.356, allocations: 0.6673 MB / 0.5374 GB, free: 5.301 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001535/1.358, allocations: 356.5 kB / 0.5378 GB, free: 4.957 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.225e-05/1.358, allocations: 4 kB / 0.5378 GB, free: 4.953 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.004742/1.362, allocations: 1.268 MB / 0.539 GB, free: 3.672 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.019e-05/1.362, allocations: 12.62 kB / 0.539 GB, free: 3.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001941/1.363, allocations: 83.98 kB / 0.5391 GB, free: 3.578 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.004e-05/1.363, allocations: 20 kB / 0.5391 GB, free: 3.559 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001667/1.364, allocations: 212.1 kB / 0.5393 GB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.831e-05/1.364, allocations: 35.77 kB / 0.5394 GB, free: 3.316 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002849/1.367, allocations: 126.9 kB / 0.5395 GB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002471/1.368, allocations: 68 kB / 0.5395 GB, free: 3.125 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.001905/1.37, allocations: 441.4 kB / 0.54 GB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001015/1.371, allocations: 387.4 kB / 0.5403 GB, free: 2.301 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005809/1.376, allocations: 1.28 MB / 0.5416 GB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.416e-05/1.376, allocations: 4 kB / 0.5416 GB, free: 1.016 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/1.376, allocations: 4 kB / 0.5416 GB, free: 1.012 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/1.377, allocations: 7.938 kB / 0.5416 GB, free: 1.004 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00683/1.383, allocations: 2.237 MB / 0.5438 GB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001678/1.384, allocations: 80.02 kB / 0.5439 GB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009146/1.384, allocations: 95.86 kB / 0.544 GB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.26e-05/1.385, allocations: 4 kB / 0.544 GB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001215/1.385, allocations: 39.94 kB / 0.544 GB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.776e-06/1.385, allocations: 8 kB / 0.544 GB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/1.385, allocations: 0 / 0.544 GB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004462/1.389, allocations: 1.363 MB / 0.5453 GB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001754/1.391, allocations: 0.5528 MB / 0.5459 GB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007779/1.392, allocations: 16 kB / 0.5459 GB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001476/1.393, allocations: 47.97 kB / 0.5459 GB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002693/1.394, allocations: 63.94 kB / 0.546 GB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/1.394, allocations: 35.98 kB / 0.546 GB, free: 12.33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004954/1.399, allocations: 1.959 MB / 0.5479 GB, free: 10.37 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.399, allocations: 0 / 0.5479 GB, free: 10.37 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002913/1.402, allocations: 0.6517 MB / 0.5486 GB, free: 9.719 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.002117/1.404, allocations: 0.8474 MB / 0.5494 GB, free: 8.863 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003016/1.407, allocations: 0.849 MB / 0.5502 GB, free: 7.992 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/1.407, allocations: 0 / 0.5502 GB, free: 7.992 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/1.408, allocations: 467.2 kB / 0.5507 GB, free: 7.512 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003254/1.412, allocations: 498.5 kB / 0.5512 GB, free: 7.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/1.424, allocations: 4.929 MB / 0.556 GB, free: 2.051 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001824/1.426, allocations: 1.736 MB / 0.5577 GB, free: 296 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.2731/1.699, allocations: 374.5 kB / 0.558 GB, free: 83.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005945/1.699, allocations: 160.3 kB / 0.5582 GB, free: 83.46 MB / 362.7 MB Notification: Performance of SimCode: time 1.433e-06/1.699, allocations: 0 / 0.5582 GB, free: 83.46 MB / 362.7 MB Notification: Performance of Templates: time 0.09038/1.79, allocations: 31.28 MB / 0.5887 GB, free: 81.37 MB / 362.7 MB