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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadModel(Modelica): time 1.657/1.657, allocations: 171.2 MB / 184.2 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.46e-05/2.472e-05, allocations: 0 / 228.8 MB, free: 15.45 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2085, allocations: 38.76 MB / 267.6 MB, free: 9.465 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3159/0.5245, allocations: 93.96 MB / 361.5 MB, free: 80.51 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/0.5248, allocations: 70.11 kB / 361.6 MB, free: 80.51 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3684/0.8932, allocations: 127.4 MB / 489 MB, free: 4.699 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.8932, allocations: 3.938 kB / 489 MB, free: 4.695 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.893e-05/0.8933, allocations: 44 kB / 489.1 MB, free: 4.652 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.00586/0.8992, allocations: 2.694 MB / 491.8 MB, free: 1.898 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.8992, allocations: 12.03 kB / 491.8 MB, free: 1.887 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007304/0.9, allocations: 407.1 kB / 492.2 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2083/1.108, allocations: 2.363 MB / 494.6 MB, free: 55.17 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.2e-05/1.108, allocations: 36.62 kB / 494.6 MB, free: 55.17 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002098/1.109, allocations: 58.97 kB / 494.6 MB, free: 55.16 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001773/1.11, allocations: 0.7908 MB / 495.4 MB, free: 55.04 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/1.11, allocations: 3 kB / 495.4 MB, free: 55.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/1.111, allocations: 23.91 kB / 495.5 MB, free: 55.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.654e-05/1.111, allocations: 16.72 kB / 495.5 MB, free: 55.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/1.112, allocations: 0.7111 MB / 496.2 MB, free: 55.04 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007614/1.12, allocations: 3.182 MB / 499.4 MB, free: 54.53 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009867/1.121, allocations: 497.3 kB / 499.9 MB, free: 54.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/1.122, allocations: 0.5919 MB / 0.4887 GB, free: 54.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03718/1.159, allocations: 36.18 MB / 0.5241 GB, free: 28.12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006231/1.16, allocations: 326.1 kB / 0.5244 GB, free: 28.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.321e-06/1.16, allocations: 0 / 0.5244 GB, free: 28.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001697/1.161, allocations: 0.8048 MB / 0.5251 GB, free: 27.83 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.593e-05/1.161, allocations: 270.2 kB / 0.5254 GB, free: 27.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004503/1.166, allocations: 2.519 MB / 0.5279 GB, free: 27.22 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001486/1.166, allocations: 35.58 kB / 0.5279 GB, free: 27.19 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001065/1.167, allocations: 1.236 MB / 0.5291 GB, free: 26.92 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/1.167, allocations: 171.1 kB / 0.5293 GB, free: 26.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.529e-05/1.167, allocations: 14.28 kB / 0.5293 GB, free: 26.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.381e-05/1.168, allocations: 349 kB / 0.5296 GB, free: 26.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004781/1.168, allocations: 192.1 kB / 0.5298 GB, free: 26.52 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006388/1.169, allocations: 0.5962 MB / 0.5304 GB, free: 26 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005905/1.169, allocations: 286.4 kB / 0.5307 GB, free: 26 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/1.169, allocations: 3.344 kB / 0.5307 GB, free: 26 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001758/1.171, allocations: 0.8093 MB / 0.5314 GB, free: 25.95 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/1.171, allocations: 10.94 kB / 0.5315 GB, free: 25.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001304/1.171, allocations: 80.42 kB / 0.5315 GB, free: 25.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.553e-05/1.171, allocations: 22.62 kB / 0.5316 GB, free: 25.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009012/1.172, allocations: 215.2 kB / 0.5318 GB, free: 25.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.648e-05/1.172, allocations: 20.5 kB / 0.5318 GB, free: 25.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001938/1.174, allocations: 124.2 kB / 0.5319 GB, free: 25.92 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001699/1.174, allocations: 66.31 kB / 0.532 GB, free: 25.92 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.000238/1.175, allocations: 171.5 kB / 0.5321 GB, free: 25.81 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005081/1.175, allocations: 385.5 kB / 0.5325 GB, free: 25.62 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003942/1.179, allocations: 1.142 MB / 0.5336 GB, free: 25.53 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/1.179, allocations: 3.906 kB / 0.5336 GB, free: 25.53 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.842e-06/1.179, allocations: 3.156 kB / 0.5336 GB, free: 25.53 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.48e-06/1.179, allocations: 2.625 kB / 0.5336 GB, free: 25.53 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004929/1.184, allocations: 2.123 MB / 0.5357 GB, free: 25.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001197/1.184, allocations: 69.69 kB / 0.5358 GB, free: 25.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007139/1.185, allocations: 105.1 kB / 0.5359 GB, free: 25.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.103e-05/1.185, allocations: 3 kB / 0.5359 GB, free: 25.14 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.743e-05/1.185, allocations: 32.72 kB / 0.5359 GB, free: 25.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.989e-06/1.185, allocations: 9.25 kB / 0.5359 GB, free: 25.14 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.993e-06/1.185, allocations: 0 / 0.5359 GB, free: 25.14 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002249/1.188, allocations: 1.214 MB / 0.5371 GB, free: 24.69 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00139/1.189, allocations: 0.5552 MB / 0.5376 GB, free: 24.33 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005882/1.19, allocations: 18.45 kB / 0.5376 GB, free: 24.33 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/1.191, allocations: 44.72 kB / 0.5377 GB, free: 24.33 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/1.191, allocations: 61.38 kB / 0.5377 GB, free: 24.33 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.866e-05/1.191, allocations: 42.33 kB / 0.5378 GB, free: 24.33 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003965/1.195, allocations: 1.919 MB / 0.5397 GB, free: 24.12 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.209e-06/1.195, allocations: 0 / 0.5397 GB, free: 24.12 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00242/1.198, allocations: 0.6527 MB / 0.5403 GB, free: 24.11 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.001404/1.199, allocations: 0.8449 MB / 0.5411 GB, free: 24.01 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001472/1.201, allocations: 0.7159 MB / 0.5418 GB, free: 23.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.744e-06/1.201, allocations: 0 / 0.5418 GB, free: 23.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000633/1.201, allocations: 398.4 kB / 0.5422 GB, free: 23.75 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00266/1.204, allocations: 0.4955 MB / 0.5427 GB, free: 23.71 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007047/1.211, allocations: 3.202 MB / 0.5458 GB, free: 22.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001247/1.212, allocations: 1.734 MB / 0.5475 GB, free: 21.95 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004218/1.213, allocations: 170.8 kB / 0.5477 GB, free: 21.94 MB / 346.7 MB Notification: Performance of SimCode: time 2.157e-06/1.213, allocations: 3.562 kB / 0.5477 GB, free: 21.94 MB / 346.7 MB Notification: Performance of Templates: time 0.05734/1.27, allocations: 36.96 MB / 0.5838 GB, free: 2.793 MB / 346.7 MB