Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001013/0.001013, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.214/1.214, allocations: 194.5 MB / 211.6 MB, free: 3.055 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001616/0.001616, allocations: 120.3 kB / 256.9 MB, free: 4.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002883/0.0002883, allocations: 19.98 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08236/0.08267, allocations: 44.49 MB / 355.1 MB, free: 2.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2815/0.3643, allocations: 97.86 MB / 452.9 MB, free: 8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.3645, allocations: 79.64 kB / 453 MB, free: 7.957 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4011/0.7657, allocations: 125.5 MB / 0.5649 GB, free: 84.19 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.7657, allocations: 4.781 kB / 0.5649 GB, free: 84.19 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.431e-05/0.7658, allocations: 45.06 kB / 0.5649 GB, free: 84.19 MB / 394.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.005657/0.7715, allocations: 3.421 MB / 0.5683 GB, free: 82.01 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.7715, allocations: 11.5 kB / 0.5683 GB, free: 82.01 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004135/0.7719, allocations: 403.4 kB / 0.5687 GB, free: 81.8 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003511/0.7755, allocations: 2.387 MB / 0.571 GB, free: 80.71 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.7755, allocations: 38.19 kB / 0.571 GB, free: 80.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001166/0.7756, allocations: 55.16 kB / 0.5711 GB, free: 80.68 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.7769, allocations: 0.8631 MB / 0.5719 GB, free: 80.31 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.7769, allocations: 0 / 0.5719 GB, free: 80.31 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.855e-05/0.777, allocations: 27.09 kB / 0.572 GB, free: 80.29 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.003e-05/0.777, allocations: 18.33 kB / 0.572 GB, free: 80.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.7783, allocations: 0.8599 MB / 0.5728 GB, free: 80.05 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004734/0.783, allocations: 3.192 MB / 0.5759 GB, free: 78.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009841/0.784, allocations: 0.613 MB / 0.5765 GB, free: 78.29 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02444/0.8085, allocations: 36.02 MB / 0.6117 GB, free: 43.79 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006296/0.8092, allocations: 399.9 kB / 0.6121 GB, free: 43.39 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 2.756e-06/0.8092, allocations: 4 kB / 0.6121 GB, free: 43.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.002036/0.8112, allocations: 1.474 MB / 0.6135 GB, free: 41.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.64e-05/0.8113, allocations: 269 kB / 0.6138 GB, free: 41.51 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002616/0.8139, allocations: 2.552 MB / 0.6163 GB, free: 38.96 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.246e-05/0.814, allocations: 37.69 kB / 0.6163 GB, free: 38.91 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008823/0.8149, allocations: 1.504 MB / 0.6178 GB, free: 37.4 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.815, allocations: 170.6 kB / 0.618 GB, free: 37.24 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.879e-05/0.815, allocations: 16 kB / 0.618 GB, free: 37.22 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.663e-05/0.8151, allocations: 338 kB / 0.6183 GB, free: 36.89 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004922/0.8156, allocations: 261.8 kB / 0.6185 GB, free: 36.63 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005937/0.8162, allocations: 0.6673 MB / 0.6192 GB, free: 35.77 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005389/0.8167, allocations: 354.4 kB / 0.6195 GB, free: 35.43 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.8168, allocations: 4 kB / 0.6195 GB, free: 35.42 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00175/0.8185, allocations: 1.265 MB / 0.6208 GB, free: 34.15 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.8185, allocations: 19.94 kB / 0.6208 GB, free: 34.13 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-05/0.8186, allocations: 76 kB / 0.6209 GB, free: 34.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.688e-05/0.8187, allocations: 28.05 kB / 0.6209 GB, free: 34.03 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006602/0.8193, allocations: 207.6 kB / 0.6211 GB, free: 33.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.775e-05/0.8194, allocations: 23.92 kB / 0.6211 GB, free: 33.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.8206, allocations: 130.9 kB / 0.6212 GB, free: 33.67 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.528e-05/0.8207, allocations: 68 kB / 0.6213 GB, free: 33.61 MB / 394.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.0008781/0.8216, allocations: 433.5 kB / 0.6217 GB, free: 33.17 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000299/0.8219, allocations: 387.4 kB / 0.6221 GB, free: 32.79 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00269/0.8246, allocations: 1.289 MB / 0.6233 GB, free: 31.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.8246, allocations: 4 kB / 0.6233 GB, free: 31.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.8246, allocations: 4 kB / 0.6234 GB, free: 31.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.8246, allocations: 7.984 kB / 0.6234 GB, free: 31.49 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003102/0.8277, allocations: 2.251 MB / 0.6256 GB, free: 29.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.568e-05/0.8278, allocations: 67.98 kB / 0.6256 GB, free: 29.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004408/0.8283, allocations: 104 kB / 0.6257 GB, free: 29.01 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/0.8283, allocations: 4.844 kB / 0.6257 GB, free: 29 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.92e-05/0.8283, allocations: 39.91 kB / 0.6258 GB, free: 28.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.8284, allocations: 0 / 0.6258 GB, free: 28.96 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.8284, allocations: 4 kB / 0.6258 GB, free: 28.96 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001805/0.8302, allocations: 1.424 MB / 0.6272 GB, free: 27.49 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009052/0.8311, allocations: 0.5528 MB / 0.6277 GB, free: 26.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000276/0.8314, allocations: 16 kB / 0.6277 GB, free: 26.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006668/0.8321, allocations: 39.95 kB / 0.6278 GB, free: 26.85 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.8322, allocations: 68 kB / 0.6278 GB, free: 26.78 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.573e-05/0.8322, allocations: 44.89 kB / 0.6279 GB, free: 26.74 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002137/0.8344, allocations: 1.955 MB / 0.6298 GB, free: 24.79 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8344, allocations: 0 / 0.6298 GB, free: 24.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001379/0.8358, allocations: 0.6439 MB / 0.6304 GB, free: 24.14 MB / 394.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.000976/0.8368, allocations: 0.8407 MB / 0.6312 GB, free: 23.46 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.8381, allocations: 0.8502 MB / 0.632 GB, free: 22.59 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.8381, allocations: 4 kB / 0.6321 GB, free: 22.59 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000592/0.8387, allocations: 461.5 kB / 0.6325 GB, free: 22.11 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001422/0.8402, allocations: 0.5017 MB / 0.633 GB, free: 21.61 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005308/0.8455, allocations: 4.926 MB / 0.6378 GB, free: 16.65 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007834/0.8463, allocations: 1.732 MB / 0.6395 GB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001208/0.8475, allocations: 378.5 kB / 0.6398 GB, free: 14.52 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002051/0.8477, allocations: 159.4 kB / 0.64 GB, free: 14.36 MB / 394.7 MB Notification: Performance of SimCode: time 1.463e-06/0.8477, allocations: 0 / 0.64 GB, free: 14.36 MB / 394.7 MB Notification: Performance of Templates: time 0.1987/1.046, allocations: 31.26 MB / 0.6705 GB, free: 98.59 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)