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.001393/0.001394, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001342/0.001342, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.375/1.375, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.001133/0.001134, allocations: 51.86 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1941/0.1952, allocations: 46.63 MB / 324.8 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02027/0.2155, allocations: 25.04 MB / 349.9 MB, free: 10.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02577/0.2413, allocations: 21.1 MB / 371 MB, free: 5.789 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005586/0.2469, allocations: 59.62 kB / 371 MB, free: 5.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005209/0.2522, allocations: 1.466 MB / 372.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01224/0.2645, allocations: 2.725 MB / 375.2 MB, free: 1.512 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005332/0.2698, allocations: 1.363 MB / 376.6 MB, free: 144 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01923/0.2891, allocations: 12.51 MB / 389.1 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002016/0.2912, allocations: 0.8707 MB / 390 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003018/0.2942, allocations: 1.862 MB / 391.8 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003513/0.2977, allocations: 2.053 MB / 393.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006042/0.2984, allocations: 140 kB / 394 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004564/0.3029, allocations: 1.222 MB / 395.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007081/0.3037, allocations: 0.6127 MB / 395.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00351/0.3072, allocations: 2.647 MB / 398.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009566/0.3168, allocations: 6.606 MB / 405.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3168, allocations: 0 / 405.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3168, allocations: 0 / 405.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001797/0.317, allocations: 0 / 405.1 MB, free: 3.473 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.009561/0.3266, allocations: 6.74 MB / 411.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.3267, allocations: 8.031 kB / 411.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009119/0.3276, allocations: 0.7487 MB / 412.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007204/0.3348, allocations: 4.664 MB / 417.3 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.159e-05/0.3349, allocations: 66 kB / 417.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002318/0.3351, allocations: 103.8 kB / 417.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002334/0.3375, allocations: 1.301 MB / 418.7 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.3e-05/0.3375, allocations: 0 / 418.7 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001176/0.3376, allocations: 36 kB / 418.8 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-05/0.3377, allocations: 43.91 kB / 418.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002453/0.3401, allocations: 1.488 MB / 420.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01041/0.3506, allocations: 5.646 MB / 426 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001779/0.3524, allocations: 0.9934 MB / 426.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001709/0.3541, allocations: 1.216 MB / 428.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2156/0.5698, allocations: 59.92 MB / 488.1 MB, free: 84.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009492/0.5708, allocations: 0.5665 MB / 488.6 MB, free: 83.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 3.747e-06/0.5708, allocations: 0 / 488.6 MB, free: 83.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.002874/0.5737, allocations: 1.882 MB / 490.5 MB, free: 82.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.5737, allocations: 62.31 kB / 490.6 MB, free: 82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005007/0.5787, allocations: 5.631 MB / 496.2 MB, free: 76.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001016/0.5789, allocations: 40.08 kB / 496.3 MB, free: 76.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001569/0.5804, allocations: 2.937 MB / 499.2 MB, free: 73.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/0.5807, allocations: 299 kB / 499.5 MB, free: 73.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004319/0.5811, allocations: 426.5 kB / 499.9 MB, free: 72.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.566e-05/0.5812, allocations: 301.1 kB / 0.4885 GB, free: 72.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007159/0.5819, allocations: 406.4 kB / 0.4889 GB, free: 72.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008828/0.5828, allocations: 1.089 MB / 0.4899 GB, free: 70.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001643/0.5844, allocations: 1.612 MB / 0.4915 GB, free: 68.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/0.5845, allocations: 8 kB / 0.4915 GB, free: 68.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003077/0.5875, allocations: 2.21 MB / 0.4937 GB, free: 66.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.088e-05/0.5876, allocations: 16 kB / 0.4937 GB, free: 66.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001709/0.5878, allocations: 169.9 kB / 0.4938 GB, free: 66.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.71e-05/0.5878, allocations: 36 kB / 0.4939 GB, free: 66.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.5889, allocations: 355.4 kB / 0.4942 GB, free: 66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.669e-05/0.5889, allocations: 47.8 kB / 0.4943 GB, free: 65.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001813/0.5907, allocations: 190 kB / 0.4944 GB, free: 65.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/0.5909, allocations: 128 kB / 0.4946 GB, free: 65.65 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.001146/0.592, allocations: 0.7082 MB / 0.4953 GB, free: 64.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006773/0.5927, allocations: 0.7217 MB / 0.496 GB, free: 64.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004293/0.597, allocations: 2.169 MB / 0.4981 GB, free: 62.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.597, allocations: 11.94 kB / 0.4981 GB, free: 62.08 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.557e-06/0.5971, allocations: 3.938 kB / 0.4981 GB, free: 62.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/0.5971, allocations: 3.984 kB / 0.4981 GB, free: 62.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005036/0.6021, allocations: 3.632 MB / 0.5017 GB, free: 58.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001372/0.6023, allocations: 144 kB / 0.5018 GB, free: 58.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006732/0.603, allocations: 147.8 kB / 0.5019 GB, free: 58.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.603, allocations: 0 / 0.5019 GB, free: 58.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-05/0.6031, allocations: 60 kB / 0.502 GB, free: 58.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.474e-06/0.6031, allocations: 7.984 kB / 0.502 GB, free: 58.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.6031, allocations: 4.062 kB / 0.502 GB, free: 58.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003047/0.6061, allocations: 2.161 MB / 0.5041 GB, free: 55.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00152/0.6077, allocations: 0.8249 MB / 0.5049 GB, free: 54.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000597/0.6083, allocations: 12 kB / 0.5049 GB, free: 54.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.6094, allocations: 35.95 kB / 0.505 GB, free: 54.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002359/0.6096, allocations: 100.5 kB / 0.5051 GB, free: 54.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001429/0.6098, allocations: 71.94 kB / 0.5051 GB, free: 54.76 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005231/0.615, allocations: 3.633 MB / 0.5087 GB, free: 51.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.615, allocations: 0 / 0.5087 GB, free: 51.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002398/0.6174, allocations: 1.088 MB / 0.5097 GB, free: 50.11 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.001457/0.6189, allocations: 1.194 MB / 0.5109 GB, free: 48.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002371/0.6213, allocations: 1.459 MB / 0.5123 GB, free: 47.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.6213, allocations: 0 / 0.5123 GB, free: 47.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008911/0.6222, allocations: 0.7705 MB / 0.5131 GB, free: 46.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003319/0.6255, allocations: 0.9922 MB / 0.514 GB, free: 45.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/0.636, allocations: 9.806 MB / 0.5236 GB, free: 35.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001303/0.6374, allocations: 2.608 MB / 0.5262 GB, free: 33.17 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0025/0.6399, allocations: 0.685 MB / 0.5268 GB, free: 32.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003651/0.6403, allocations: 291.4 kB / 0.5271 GB, free: 32.2 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.6403, allocations: 0 / 0.5271 GB, free: 32.2 MB / 382.1 MB Notification: Performance of Templates: time 0.08795/0.7282, allocations: 55.13 MB / 0.581 GB, free: 8.977 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)