Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001472/0.001472, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001403/0.001403, allocations: 195.9 kB / 16.14 MB, free: 6.672 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.36/1.36, allocations: 205.1 MB / 222 MB, free: 4.941 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.001234/0.001234, allocations: 52.41 kB / 278 MB, free: 12.99 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2096, allocations: 46.63 MB / 324.7 MB, free: 2.062 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02075/0.2304, allocations: 25.03 MB / 349.7 MB, free: 11.22 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02504/0.2555, allocations: 21.5 MB / 371.2 MB, free: 5.637 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005055/0.2606, allocations: 55.69 kB / 371.3 MB, free: 5.582 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004971/0.2656, allocations: 1.47 MB / 372.7 MB, free: 4.105 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01103/0.2767, allocations: 2.674 MB / 375.4 MB, free: 1.414 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00572/0.2824, allocations: 1.309 MB / 376.7 MB, free: 100 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01826/0.3007, allocations: 12.14 MB / 388.8 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001392/0.3021, allocations: 0.8297 MB / 389.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002479/0.3046, allocations: 1.792 MB / 391.5 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002578/0.3072, allocations: 2.018 MB / 393.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000519/0.3078, allocations: 92 kB / 393.6 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004277/0.312, allocations: 1.175 MB / 394.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007224/0.3128, allocations: 0.5581 MB / 395.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003093/0.3159, allocations: 2.608 MB / 397.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007943/0.3238, allocations: 6.485 MB / 404.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.3239, allocations: 0 / 404.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3239, allocations: 0 / 404.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002096/0.3241, allocations: 3.938 kB / 404.4 MB, free: 4.25 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.01088/0.335, allocations: 6.74 MB / 411.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.3351, allocations: 8.031 kB / 411.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001124/0.3362, allocations: 0.7487 MB / 411.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007524/0.3437, allocations: 4.668 MB / 416.6 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.517e-05/0.3438, allocations: 66 kB / 416.6 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002436/0.3441, allocations: 99.89 kB / 416.7 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002528/0.3466, allocations: 1.305 MB / 418 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.3466, allocations: 0 / 418 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001201/0.3468, allocations: 36 kB / 418.1 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.393e-05/0.3468, allocations: 39.91 kB / 418.1 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002478/0.3493, allocations: 1.488 MB / 419.6 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0106/0.3599, allocations: 5.65 MB / 425.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001658/0.3616, allocations: 0.9889 MB / 426.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.3632, allocations: 1.223 MB / 427.5 MB, free: 12.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1954/0.5586, allocations: 59.93 MB / 487.4 MB, free: 85.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008718/0.5595, allocations: 0.5636 MB / 488 MB, free: 84.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 2.996e-06/0.5595, allocations: 0 / 488 MB, free: 84.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.002851/0.5624, allocations: 1.883 MB / 489.8 MB, free: 83.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.5624, allocations: 67.97 kB / 489.9 MB, free: 83.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005182/0.5676, allocations: 5.618 MB / 495.5 MB, free: 77.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001346/0.5678, allocations: 43.77 kB / 495.6 MB, free: 77.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/0.5694, allocations: 2.938 MB / 498.5 MB, free: 74.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002086/0.5696, allocations: 298.8 kB / 498.8 MB, free: 74.28 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004197/0.57, allocations: 418.6 kB / 499.2 MB, free: 73.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.769e-05/0.57, allocations: 305.1 kB / 499.5 MB, free: 73.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007267/0.5708, allocations: 403.8 kB / 499.9 MB, free: 73.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009042/0.5717, allocations: 1.094 MB / 0.4892 GB, free: 71.78 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001657/0.5734, allocations: 1.618 MB / 0.4908 GB, free: 69.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.5734, allocations: 8 kB / 0.4908 GB, free: 69.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002863/0.5762, allocations: 2.216 MB / 0.493 GB, free: 67.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.5763, allocations: 12 kB / 0.493 GB, free: 67.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001512/0.5764, allocations: 168 kB / 0.4932 GB, free: 67.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.891e-05/0.5765, allocations: 32 kB / 0.4932 GB, free: 67.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.5775, allocations: 355.1 kB / 0.4935 GB, free: 67.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.638e-05/0.5775, allocations: 47.8 kB / 0.4936 GB, free: 67.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001576/0.5791, allocations: 182.2 kB / 0.4938 GB, free: 66.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.5792, allocations: 132 kB / 0.4939 GB, free: 66.78 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.001126/0.5804, allocations: 0.712 MB / 0.4946 GB, free: 66.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005302/0.5809, allocations: 0.7255 MB / 0.4953 GB, free: 65.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004182/0.5851, allocations: 2.174 MB / 0.4974 GB, free: 63.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.5851, allocations: 8 kB / 0.4974 GB, free: 63.24 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.5851, allocations: 4 kB / 0.4974 GB, free: 63.24 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.5852, allocations: 8.859 kB / 0.4974 GB, free: 63.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004344/0.5895, allocations: 3.624 MB / 0.501 GB, free: 59.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001347/0.5897, allocations: 144 kB / 0.5011 GB, free: 59.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006865/0.5903, allocations: 151.8 kB / 0.5013 GB, free: 59.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.5904, allocations: 4.062 kB / 0.5013 GB, free: 59.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.625e-05/0.5904, allocations: 56 kB / 0.5013 GB, free: 59.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.5905, allocations: 6.125 kB / 0.5013 GB, free: 59.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.5905, allocations: 7.922 kB / 0.5013 GB, free: 59.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002844/0.5933, allocations: 2.158 MB / 0.5034 GB, free: 57.01 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001221/0.5946, allocations: 0.8161 MB / 0.5042 GB, free: 56.17 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005221/0.5951, allocations: 16 kB / 0.5042 GB, free: 56.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.5961, allocations: 39.95 kB / 0.5043 GB, free: 56.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002323/0.5964, allocations: 96.48 kB / 0.5044 GB, free: 56.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/0.5965, allocations: 71.98 kB / 0.5044 GB, free: 55.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004757/0.6013, allocations: 3.629 MB / 0.508 GB, free: 52.35 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.193e-06/0.6013, allocations: 0 / 0.508 GB, free: 52.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00232/0.6036, allocations: 1.084 MB / 0.509 GB, free: 51.31 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.001472/0.6051, allocations: 1.195 MB / 0.5102 GB, free: 50.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002035/0.6071, allocations: 1.436 MB / 0.5116 GB, free: 48.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.6072, allocations: 0 / 0.5116 GB, free: 48.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008602/0.608, allocations: 0.767 MB / 0.5124 GB, free: 47.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003283/0.6113, allocations: 0.9177 MB / 0.5133 GB, free: 46.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009148/0.6205, allocations: 9.81 MB / 0.5228 GB, free: 37.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001199/0.6217, allocations: 2.608 MB / 0.5254 GB, free: 34.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002196/0.6239, allocations: 0.6888 MB / 0.5261 GB, free: 33.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003224/0.6242, allocations: 287.4 kB / 0.5263 GB, free: 33.5 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.6242, allocations: 0 / 0.5263 GB, free: 33.5 MB / 382.1 MB Notification: Performance of Templates: time 0.08089/0.7051, allocations: 53.67 MB / 0.5787 GB, free: 11.75 MB / 414.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)