Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadModel(Modelica): time 1.736/1.736, allocations: 171.1 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003567, allocations: 15.98 kB / 233.8 MB, free: 0.9727 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08724/0.08763, allocations: 38.77 MB / 272.5 MB, free: 10.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4013/0.489, allocations: 94.04 MB / 366.6 MB, free: 5.012 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.4893, allocations: 71.97 kB / 366.7 MB, free: 4.941 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.674/1.163, allocations: 127.5 MB / 494.2 MB, free: 57.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.336e-06/1.163, allocations: 0 / 494.2 MB, free: 57.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.447e-05/1.164, allocations: 44 kB / 494.2 MB, free: 57.07 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.008639/1.172, allocations: 3.442 MB / 497.7 MB, free: 53.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/1.172, allocations: 12.03 kB / 497.7 MB, free: 53.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007419/1.173, allocations: 399.1 kB / 498.1 MB, free: 53.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006242/1.179, allocations: 2.383 MB / 0.4887 GB, free: 50.69 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.295e-05/1.179, allocations: 40.95 kB / 0.4888 GB, free: 50.65 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002005/1.18, allocations: 48 kB / 0.4888 GB, free: 50.61 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002248/1.182, allocations: 0.8728 MB / 0.4897 GB, free: 49.7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.554e-05/1.182, allocations: 0 / 0.4897 GB, free: 49.7 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/1.182, allocations: 28 kB / 0.4897 GB, free: 49.67 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.823e-05/1.182, allocations: 19.98 kB / 0.4897 GB, free: 49.65 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002512/1.185, allocations: 0.8554 MB / 0.4905 GB, free: 48.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008157/1.193, allocations: 3.197 MB / 0.4937 GB, free: 45.51 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/1.195, allocations: 0.622 MB / 0.4943 GB, free: 44.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04351/1.238, allocations: 36.01 MB / 0.5294 GB, free: 3.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001189/1.239, allocations: 381.7 kB / 0.5298 GB, free: 3.344 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.107e-06/1.24, allocations: 0 / 0.5298 GB, free: 3.344 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.003751/1.243, allocations: 1.481 MB / 0.5313 GB, free: 1.777 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.824e-05/1.243, allocations: 273 kB / 0.5315 GB, free: 1.449 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005809/1.249, allocations: 3.011 MB / 0.5345 GB, free: 14.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001832/1.249, allocations: 37.7 kB / 0.5345 GB, free: 14.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001651/1.251, allocations: 1.24 MB / 0.5357 GB, free: 13.14 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002621/1.251, allocations: 169.7 kB / 0.5359 GB, free: 12.97 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.765e-05/1.252, allocations: 20 kB / 0.5359 GB, free: 12.95 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001632/1.252, allocations: 342.8 kB / 0.5362 GB, free: 12.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001086/1.253, allocations: 261.8 kB / 0.5365 GB, free: 12.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/1.254, allocations: 0.6751 MB / 0.5371 GB, free: 11.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/1.255, allocations: 352.5 kB / 0.5375 GB, free: 11.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.575e-05/1.256, allocations: 4 kB / 0.5375 GB, free: 11.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003128/1.259, allocations: 0.9445 MB / 0.5384 GB, free: 10.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.337e-05/1.259, allocations: 12 kB / 0.5384 GB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001859/1.259, allocations: 84.11 kB / 0.5385 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.529e-05/1.259, allocations: 20 kB / 0.5385 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001364/1.26, allocations: 211.6 kB / 0.5387 GB, free: 9.863 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.626e-05/1.26, allocations: 27.88 kB / 0.5387 GB, free: 9.836 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002026/1.262, allocations: 127 kB / 0.5388 GB, free: 9.711 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001782/1.263, allocations: 67.94 kB / 0.5389 GB, free: 9.645 MB / 362.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.001657/1.264, allocations: 437.5 kB / 0.5393 GB, free: 9.207 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008035/1.265, allocations: 387.4 kB / 0.5397 GB, free: 8.824 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005555/1.271, allocations: 1.284 MB / 0.5409 GB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.37e-05/1.271, allocations: 8 kB / 0.541 GB, free: 7.523 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/1.271, allocations: 0 / 0.541 GB, free: 7.523 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.556e-05/1.271, allocations: 7.938 kB / 0.541 GB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006602/1.277, allocations: 2.261 MB / 0.5432 GB, free: 5.184 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001609/1.278, allocations: 67.98 kB / 0.5432 GB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009522/1.279, allocations: 107.9 kB / 0.5433 GB, free: 5.012 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.097e-05/1.279, allocations: 4 kB / 0.5433 GB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.701e-05/1.279, allocations: 35.94 kB / 0.5434 GB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.992e-06/1.279, allocations: 0 / 0.5434 GB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/1.279, allocations: 4 kB / 0.5434 GB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004324/1.283, allocations: 1.364 MB / 0.5447 GB, free: 3.574 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001446/1.285, allocations: 0.5489 MB / 0.5452 GB, free: 2.992 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000614/1.285, allocations: 12 kB / 0.5453 GB, free: 2.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001381/1.287, allocations: 47.91 kB / 0.5453 GB, free: 2.934 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002402/1.287, allocations: 63.94 kB / 0.5454 GB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/1.287, allocations: 44.05 kB / 0.5454 GB, free: 2.828 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004556/1.292, allocations: 1.951 MB / 0.5473 GB, free: 0.8789 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.91e-07/1.292, allocations: 0 / 0.5473 GB, free: 0.8789 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003048/1.295, allocations: 0.6517 MB / 0.548 GB, free: 232 kB / 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.3001/1.595, allocations: 0.8357 MB / 0.5488 GB, free: 83.61 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003071/1.598, allocations: 0.8536 MB / 0.5496 GB, free: 83.49 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/1.598, allocations: 1.125 kB / 0.5496 GB, free: 83.49 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001357/1.599, allocations: 463.9 kB / 0.55 GB, free: 83.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002975/1.602, allocations: 0.4961 MB / 0.5505 GB, free: 83.33 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01128/1.614, allocations: 4.988 MB / 0.5554 GB, free: 81.01 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001502/1.615, allocations: 1.733 MB / 0.5571 GB, free: 80.28 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005448/1.616, allocations: 168.2 kB / 0.5573 GB, free: 80.28 MB / 362.7 MB Notification: Performance of SimCode: time 1.693e-06/1.616, allocations: 1.875 kB / 0.5573 GB, free: 80.28 MB / 362.7 MB Notification: Performance of Templates: time 0.09867/1.715, allocations: 37 MB / 0.5934 GB, free: 74.86 MB / 362.7 MB