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.001079/0.001079, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.379/1.379, allocations: 205.1 MB / 222.4 MB, free: 4.57 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.001213/0.001213, allocations: 55.91 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2155/0.2167, allocations: 46.63 MB / 325.3 MB, free: 1.891 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.03895/0.2557, allocations: 25.34 MB / 350.6 MB, free: 10.54 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.05/0.3058, allocations: 21.34 MB / 372 MB, free: 5.105 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006575/0.3124, allocations: 59.69 kB / 372 MB, free: 5.047 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007811/0.3203, allocations: 1.728 MB / 373.8 MB, free: 3.309 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02054/0.3409, allocations: 3.164 MB / 376.9 MB, free: 124 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01009/0.351, allocations: 1.564 MB / 378.5 MB, free: 14.54 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03369/0.3847, allocations: 12.35 MB / 390.9 MB, free: 2.148 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003013/0.3878, allocations: 0.8746 MB / 391.7 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004721/0.3926, allocations: 1.835 MB / 393.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004971/0.3976, allocations: 2.053 MB / 395.6 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001155/0.3988, allocations: 136 kB / 395.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007829/0.4066, allocations: 1.226 MB / 397 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001657/0.4083, allocations: 0.6087 MB / 397.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005981/0.4143, allocations: 2.647 MB / 400.2 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01501/0.4294, allocations: 6.618 MB / 406.9 MB, free: 2.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.4294, allocations: 0 / 406.9 MB, free: 2.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4294, allocations: 0 / 406.9 MB, free: 2.047 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002764/0.4297, allocations: 4 kB / 406.9 MB, free: 2.043 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.01885/0.4486, allocations: 6.737 MB / 413.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.4487, allocations: 8.031 kB / 413.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001785/0.4505, allocations: 0.7526 MB / 414.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01302/0.4635, allocations: 4.664 MB / 419 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.4637, allocations: 69.98 kB / 419.1 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006151/0.4643, allocations: 95.91 kB / 419.2 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004362/0.4687, allocations: 1.305 MB / 420.5 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/0.4688, allocations: 0 / 420.5 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002068/0.469, allocations: 36 kB / 420.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.601e-05/0.4691, allocations: 47.91 kB / 420.6 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004687/0.4738, allocations: 1.488 MB / 422.1 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01717/0.491, allocations: 5.638 MB / 427.7 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003187/0.4942, allocations: 0.9849 MB / 428.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003068/0.4973, allocations: 1.231 MB / 429.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1916/0.6889, allocations: 59.91 MB / 489.8 MB, free: 82.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00087/0.6898, allocations: 0.5606 MB / 490.4 MB, free: 81.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 3.126e-06/0.6898, allocations: 0 / 490.4 MB, free: 81.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.00297/0.6928, allocations: 1.878 MB / 492.3 MB, free: 80.19 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.6929, allocations: 62.55 kB / 492.3 MB, free: 80.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004882/0.6978, allocations: 5.634 MB / 498 MB, free: 74.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.37e-05/0.6978, allocations: 41.69 kB / 498 MB, free: 74.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001587/0.6994, allocations: 2.932 MB / 0.4892 GB, free: 71.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001773/0.6996, allocations: 295.1 kB / 0.4895 GB, free: 71.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003922/0.7, allocations: 426.5 kB / 0.4899 GB, free: 70.85 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.87e-05/0.7001, allocations: 305.1 kB / 0.4902 GB, free: 70.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000734/0.7008, allocations: 410 kB / 0.4906 GB, free: 70.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009056/0.7017, allocations: 1.086 MB / 0.4916 GB, free: 68.76 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001685/0.7034, allocations: 1.609 MB / 0.4932 GB, free: 66.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.7034, allocations: 8 kB / 0.4932 GB, free: 66.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002763/0.7062, allocations: 2.222 MB / 0.4954 GB, free: 64.67 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.7062, allocations: 16 kB / 0.4954 GB, free: 64.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001637/0.7064, allocations: 160 kB / 0.4955 GB, free: 64.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.529e-05/0.7065, allocations: 39.92 kB / 0.4956 GB, free: 64.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/0.7075, allocations: 351.4 kB / 0.4959 GB, free: 64.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.804e-05/0.7076, allocations: 55.41 kB / 0.496 GB, free: 64.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001514/0.7091, allocations: 186.2 kB / 0.4961 GB, free: 63.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/0.7092, allocations: 120 kB / 0.4963 GB, free: 63.76 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.001039/0.7103, allocations: 0.716 MB / 0.497 GB, free: 63.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004804/0.7108, allocations: 0.7217 MB / 0.4977 GB, free: 62.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004406/0.7152, allocations: 2.17 MB / 0.4998 GB, free: 60.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.7152, allocations: 11.98 kB / 0.4998 GB, free: 60.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.7152, allocations: 3.938 kB / 0.4998 GB, free: 60.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.7152, allocations: 0 / 0.4998 GB, free: 60.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004317/0.7195, allocations: 3.632 MB / 0.5033 GB, free: 56.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001548/0.7197, allocations: 136 kB / 0.5035 GB, free: 56.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007214/0.7204, allocations: 152.8 kB / 0.5036 GB, free: 56.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.7205, allocations: 4 kB / 0.5036 GB, free: 56.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.588e-05/0.7205, allocations: 63.98 kB / 0.5037 GB, free: 56.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.608e-06/0.7205, allocations: 4 kB / 0.5037 GB, free: 56.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.7205, allocations: 0 / 0.5037 GB, free: 56.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002701/0.7233, allocations: 2.161 MB / 0.5058 GB, free: 53.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/0.7243, allocations: 0.824 MB / 0.5066 GB, free: 53.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005396/0.7249, allocations: 16.88 kB / 0.5066 GB, free: 53.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.726, allocations: 27.97 kB / 0.5066 GB, free: 53.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/0.7262, allocations: 104.4 kB / 0.5067 GB, free: 52.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.7263, allocations: 75.98 kB / 0.5068 GB, free: 52.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00378/0.7301, allocations: 3.629 MB / 0.5104 GB, free: 49.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.7301, allocations: 0 / 0.5104 GB, free: 49.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00189/0.732, allocations: 1.088 MB / 0.5114 GB, free: 48.22 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.001298/0.7333, allocations: 1.186 MB / 0.5126 GB, free: 47.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002404/0.7357, allocations: 1.459 MB / 0.514 GB, free: 45.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.7357, allocations: 4.125 kB / 0.514 GB, free: 45.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009709/0.7367, allocations: 0.7705 MB / 0.5148 GB, free: 44.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002985/0.7397, allocations: 0.9965 MB / 0.5157 GB, free: 43.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008637/0.7483, allocations: 8.282 MB / 0.5238 GB, free: 35.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.7496, allocations: 2.604 MB / 0.5264 GB, free: 32.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00204/0.7517, allocations: 0.685 MB / 0.527 GB, free: 32.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003224/0.752, allocations: 287.4 kB / 0.5273 GB, free: 31.84 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.752, allocations: 0 / 0.5273 GB, free: 31.84 MB / 382.1 MB Notification: Performance of Templates: time 0.08463/0.8367, allocations: 55.39 MB / 0.5814 GB, free: 8.367 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)