Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 91.61 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001346/0.001347, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.664/1.664, allocations: 205.4 MB / 222.1 MB, free: 5.895 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004439/0.000444, allocations: 14.66 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2794, allocations: 47.59 MB / 326.5 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.0231/0.3026, allocations: 22.48 MB / 349 MB, free: 13.02 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.03351/0.3361, allocations: 19.52 MB / 368.5 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00655/0.3427, allocations: 55.69 kB / 368.5 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005497/0.3483, allocations: 1.243 MB / 369.8 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01257/0.3609, allocations: 2.576 MB / 372.3 MB, free: 5.539 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005736/0.3666, allocations: 1.202 MB / 373.5 MB, free: 4.332 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02111/0.3878, allocations: 11.56 MB / 385.1 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002792/0.3906, allocations: 0.7988 MB / 385.9 MB, free: 7.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003706/0.3944, allocations: 1.605 MB / 387.5 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003862/0.3982, allocations: 1.871 MB / 389.4 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008413/0.3991, allocations: 76 kB / 389.5 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01051/0.4096, allocations: 1.109 MB / 390.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00189/0.4116, allocations: 0.504 MB / 391.1 MB, free: 2.711 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003477/0.4151, allocations: 1.178 MB / 392.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0109/0.426, allocations: 4.813 MB / 397.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.774e-06/0.4261, allocations: 0 / 397.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.513e-06/0.4261, allocations: 4 kB / 397.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002894/0.4264, allocations: 0 / 397.1 MB, free: 12.69 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01875/0.4452, allocations: 5.905 MB / 403 MB, free: 6.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.876e-05/0.4452, allocations: 8.031 kB / 403 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002442/0.4477, allocations: 0.7448 MB / 403.7 MB, free: 5.934 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01409/0.4618, allocations: 4.336 MB / 408.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.462, allocations: 66 kB / 408.1 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004902/0.4625, allocations: 103.9 kB / 408.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004283/0.4668, allocations: 1.309 MB / 409.5 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.977e-05/0.4668, allocations: 0 / 409.5 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002307/0.4671, allocations: 39.98 kB / 409.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.554e-05/0.4672, allocations: 39.98 kB / 409.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004956/0.4721, allocations: 1.531 MB / 411.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01903/0.4912, allocations: 5.666 MB / 416.8 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003287/0.4945, allocations: 1.029 MB / 417.8 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003088/0.4977, allocations: 1.239 MB / 419.1 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2278/0.7255, allocations: 59.97 MB / 479 MB, free: 92.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008533/0.7264, allocations: 0.5747 MB / 479.6 MB, free: 91.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 3.096e-06/0.7264, allocations: 0 / 479.6 MB, free: 91.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.00298/0.7294, allocations: 1.942 MB / 481.6 MB, free: 91.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.7294, allocations: 63.44 kB / 481.6 MB, free: 91.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005361/0.7348, allocations: 5.559 MB / 487.2 MB, free: 86.03 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001185/0.7349, allocations: 45.69 kB / 487.2 MB, free: 85.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001823/0.7368, allocations: 2.938 MB / 490.2 MB, free: 83.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002414/0.737, allocations: 291 kB / 490.5 MB, free: 82.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.028e-05/0.7371, allocations: 32 kB / 490.5 MB, free: 82.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.551e-05/0.7372, allocations: 365.9 kB / 490.8 MB, free: 82.37 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007045/0.7379, allocations: 419.2 kB / 491.3 MB, free: 81.97 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008591/0.7388, allocations: 1.108 MB / 492.4 MB, free: 80.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008282/0.7396, allocations: 0.5666 MB / 492.9 MB, free: 80.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.7396, allocations: 8 kB / 492.9 MB, free: 80.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002776/0.7424, allocations: 2.241 MB / 495.2 MB, free: 77.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.747e-05/0.7424, allocations: 16.75 kB / 495.2 MB, free: 77.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001741/0.7426, allocations: 164 kB / 495.4 MB, free: 77.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.269e-05/0.7427, allocations: 40 kB / 495.4 MB, free: 77.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.7437, allocations: 367 kB / 495.7 MB, free: 77.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.965e-05/0.7437, allocations: 47.86 kB / 495.8 MB, free: 77.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001453/0.7452, allocations: 198.9 kB / 496 MB, free: 76.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/0.7454, allocations: 124 kB / 496.1 MB, free: 76.87 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001104/0.7465, allocations: 0.7121 MB / 496.8 MB, free: 76.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004419/0.7469, allocations: 0.7202 MB / 497.5 MB, free: 75.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00425/0.7512, allocations: 2.213 MB / 499.8 MB, free: 73.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.7512, allocations: 8 kB / 499.8 MB, free: 73.28 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.7512, allocations: 1.5 kB / 499.8 MB, free: 73.28 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.7512, allocations: 7.984 kB / 499.8 MB, free: 73.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004289/0.7555, allocations: 3.665 MB / 0.4916 GB, free: 69.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000165/0.7557, allocations: 140 kB / 0.4918 GB, free: 69.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006489/0.7563, allocations: 167.8 kB / 0.4919 GB, free: 69.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.7564, allocations: 4 kB / 0.4919 GB, free: 69.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.974e-05/0.7564, allocations: 59.95 kB / 0.492 GB, free: 69.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.7565, allocations: 4 kB / 0.492 GB, free: 69.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.7565, allocations: 0 / 0.492 GB, free: 69.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00255/0.759, allocations: 2.219 MB / 0.4942 GB, free: 66.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000962/0.76, allocations: 0.824 MB / 0.495 GB, free: 66.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004657/0.7605, allocations: 16.44 kB / 0.495 GB, free: 66.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000937/0.7614, allocations: 51.91 kB / 0.495 GB, free: 66.03 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/0.7616, allocations: 96.58 kB / 0.4951 GB, free: 65.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/0.7617, allocations: 78.67 kB / 0.4952 GB, free: 65.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00392/0.7656, allocations: 3.563 MB / 0.4987 GB, free: 62.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7657, allocations: 3.938 kB / 0.4987 GB, free: 62.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002488/0.7681, allocations: 1.082 MB / 0.4997 GB, free: 61.29 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001328/0.7695, allocations: 1.129 MB / 0.5008 GB, free: 60.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002021/0.7715, allocations: 1.463 MB / 0.5023 GB, free: 58.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.7715, allocations: 128 / 0.5023 GB, free: 58.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009239/0.7725, allocations: 0.7902 MB / 0.503 GB, free: 58.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002797/0.7753, allocations: 0.9481 MB / 0.504 GB, free: 57.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00982/0.7851, allocations: 9.231 MB / 0.513 GB, free: 47.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001402/0.7865, allocations: 2.608 MB / 0.5155 GB, free: 45.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002319/0.7889, allocations: 0.685 MB / 0.5162 GB, free: 44.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003282/0.7892, allocations: 287.4 kB / 0.5165 GB, free: 44.25 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.7892, allocations: 0 / 0.5165 GB, free: 44.25 MB / 382.1 MB Notification: Performance of Templates: time 0.08477/0.874, allocations: 51.9 MB / 0.5672 GB, free: 8.27 MB / 398.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)