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.0009568/0.0009567, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001094/0.001094, allocations: 193.2 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.389/1.389, allocations: 205.1 MB / 222 MB, free: 4.785 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.001113/0.001113, allocations: 51.92 kB / 278.1 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2114, allocations: 46.62 MB / 324.7 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02297/0.2344, allocations: 25.05 MB / 349.7 MB, free: 11.03 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02473/0.2592, allocations: 21.48 MB / 371.2 MB, free: 5.461 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004883/0.2641, allocations: 59.62 kB / 371.3 MB, free: 5.402 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004128/0.2683, allocations: 1.474 MB / 372.7 MB, free: 3.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01038/0.2787, allocations: 2.674 MB / 375.4 MB, free: 1.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005071/0.2838, allocations: 1.309 MB / 376.7 MB, free: 15.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01879/0.3026, allocations: 12.14 MB / 388.9 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001403/0.304, allocations: 0.8335 MB / 389.7 MB, free: 2.859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002435/0.3065, allocations: 1.792 MB / 391.5 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001874/0.3084, allocations: 2.022 MB / 393.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003641/0.3088, allocations: 92 kB / 393.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003709/0.3125, allocations: 1.171 MB / 394.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005864/0.3131, allocations: 0.558 MB / 395.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002466/0.3155, allocations: 2.604 MB / 397.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006267/0.3218, allocations: 6.489 MB / 404.4 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.3219, allocations: 0 / 404.4 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.3219, allocations: 3.938 kB / 404.4 MB, free: 4.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.862e-05/0.322, allocations: 0 / 404.4 MB, free: 4.059 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.008654/0.3306, allocations: 6.729 MB / 411.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.3307, allocations: 11.97 kB / 411.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007529/0.3314, allocations: 0.7526 MB / 411.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006247/0.3377, allocations: 4.664 MB / 416.6 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.332e-05/0.3378, allocations: 69.94 kB / 416.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001991/0.338, allocations: 103.8 kB / 416.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002189/0.3402, allocations: 1.305 MB / 418.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.3402, allocations: 0 / 418.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001201/0.3403, allocations: 36 kB / 418.1 MB, free: 6.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.95e-05/0.3404, allocations: 39.91 kB / 418.1 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002498/0.3429, allocations: 1.488 MB / 419.6 MB, free: 4.648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008796/0.3517, allocations: 5.65 MB / 425.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/0.3534, allocations: 0.9895 MB / 426.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001601/0.355, allocations: 1.22 MB / 427.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1967/0.5517, allocations: 59.93 MB / 487.4 MB, free: 84.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008815/0.5526, allocations: 0.5654 MB / 488 MB, free: 84.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 2.594e-06/0.5526, allocations: 0 / 488 MB, free: 84.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.002812/0.5554, allocations: 1.88 MB / 489.8 MB, free: 82.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.215e-05/0.5555, allocations: 63.97 kB / 489.9 MB, free: 82.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005255/0.5607, allocations: 5.623 MB / 495.5 MB, free: 77.01 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.956e-05/0.5608, allocations: 41.7 kB / 495.6 MB, free: 76.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001626/0.5625, allocations: 2.937 MB / 498.5 MB, free: 74.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002104/0.5627, allocations: 305.3 kB / 498.8 MB, free: 73.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000418/0.5631, allocations: 418.6 kB / 499.2 MB, free: 73.33 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.271e-05/0.5632, allocations: 303.2 kB / 499.5 MB, free: 73.03 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007835/0.564, allocations: 399.8 kB / 499.9 MB, free: 72.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009509/0.5649, allocations: 1.102 MB / 0.4893 GB, free: 71.24 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001741/0.5667, allocations: 1.604 MB / 0.4908 GB, free: 69.37 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.698e-06/0.5667, allocations: 4.75 kB / 0.4908 GB, free: 69.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003027/0.5697, allocations: 2.214 MB / 0.493 GB, free: 67.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.561e-05/0.5698, allocations: 16 kB / 0.493 GB, free: 67.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001559/0.5699, allocations: 164 kB / 0.4932 GB, free: 66.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.354e-05/0.57, allocations: 36 kB / 0.4932 GB, free: 66.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.571, allocations: 359 kB / 0.4935 GB, free: 66.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.778e-05/0.5711, allocations: 47.8 kB / 0.4936 GB, free: 66.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001746/0.5728, allocations: 191 kB / 0.4938 GB, free: 66.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00015/0.573, allocations: 128 kB / 0.4939 GB, free: 66.24 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 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00118/0.5741, allocations: 0.7119 MB / 0.4946 GB, free: 65.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005818/0.5747, allocations: 0.7255 MB / 0.4953 GB, free: 64.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004325/0.5791, allocations: 2.167 MB / 0.4974 GB, free: 62.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.5791, allocations: 8 kB / 0.4974 GB, free: 62.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.5791, allocations: 0 / 0.4974 GB, free: 62.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.5791, allocations: 7.641 kB / 0.4974 GB, free: 62.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004427/0.5835, allocations: 3.631 MB / 0.501 GB, free: 59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001617/0.5837, allocations: 143.3 kB / 0.5011 GB, free: 58.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007004/0.5844, allocations: 155.8 kB / 0.5013 GB, free: 58.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.5844, allocations: 0 / 0.5013 GB, free: 58.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.137e-05/0.5845, allocations: 60.05 kB / 0.5013 GB, free: 58.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.5845, allocations: 8 kB / 0.5013 GB, free: 58.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.5846, allocations: 0 / 0.5013 GB, free: 58.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002685/0.5872, allocations: 2.161 MB / 0.5034 GB, free: 56.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001025/0.5883, allocations: 0.8239 MB / 0.5042 GB, free: 55.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005387/0.5888, allocations: 19.98 kB / 0.5043 GB, free: 55.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/0.5899, allocations: 35.97 kB / 0.5043 GB, free: 55.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002111/0.5902, allocations: 92.48 kB / 0.5044 GB, free: 55.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/0.5903, allocations: 71.98 kB / 0.5045 GB, free: 55.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004011/0.5943, allocations: 3.633 MB / 0.508 GB, free: 51.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5943, allocations: 0 / 0.508 GB, free: 51.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002112/0.5964, allocations: 1.083 MB / 0.5091 GB, free: 50.75 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00138/0.5978, allocations: 1.194 MB / 0.5102 GB, free: 49.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002069/0.5999, allocations: 1.436 MB / 0.5116 GB, free: 48.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5999, allocations: 0 / 0.5116 GB, free: 48.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008984/0.6008, allocations: 0.7667 MB / 0.5124 GB, free: 47.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002991/0.6038, allocations: 0.9259 MB / 0.5133 GB, free: 46.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009446/0.6133, allocations: 9.809 MB / 0.5229 GB, free: 36.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001283/0.6146, allocations: 2.608 MB / 0.5254 GB, free: 33.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00229/0.6169, allocations: 0.6888 MB / 0.5261 GB, free: 33.19 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003344/0.6172, allocations: 279.4 kB / 0.5263 GB, free: 32.92 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6172, allocations: 0 / 0.5263 GB, free: 32.92 MB / 382.1 MB Notification: Performance of Templates: time 0.0807/0.6979, allocations: 53.65 MB / 0.5787 GB, free: 11.18 MB / 414.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)