Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006428/0.006428, allocations: 98.97 kB / 15.73 MB, free: 6.043 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.001478/0.001478, allocations: 195 kB / 16.67 MB, free: 5.961 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.418/1.418, allocations: 205.1 MB / 222.5 MB, free: 4.328 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.001169/0.001169, allocations: 51.17 kB / 326.5 MB, free: 14.59 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08537/0.08655, allocations: 46.63 MB / 373.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01417/0.1008, allocations: 14.6 MB / 387.8 MB, free: 2.746 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02519/0.126, allocations: 19.79 MB / 407.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004467/0.1305, allocations: 91.25 kB / 407.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004213/0.1348, allocations: 1.224 MB / 408.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008313/0.1432, allocations: 2.316 MB / 411.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004449/0.1476, allocations: 1.389 MB / 412.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009397/0.1571, allocations: 6.453 MB / 419 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000773/0.1579, allocations: 473.6 kB / 419.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001476/0.1594, allocations: 1.038 MB / 420.5 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001302/0.1607, allocations: 1.126 MB / 421.7 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001592/0.1608, allocations: 72 kB / 421.7 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00334/0.1642, allocations: 1.159 MB / 422.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003315/0.1645, allocations: 341.5 kB / 423.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001306/0.1658, allocations: 1.432 MB / 424.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005318/0.1712, allocations: 4.004 MB / 428.7 MB, free: 9.652 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1712, allocations: 4 kB / 428.7 MB, free: 9.648 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1712, allocations: 0 / 428.7 MB, free: 9.648 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.833e-05/0.1713, allocations: 0 / 428.7 MB, free: 9.648 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005699/0.177, allocations: 3.849 MB / 432.5 MB, free: 5.723 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.177, allocations: 8.031 kB / 432.5 MB, free: 5.715 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004139/0.1775, allocations: 414.9 kB / 432.9 MB, free: 5.305 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003634/0.1811, allocations: 2.479 MB / 435.4 MB, free: 2.754 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.715e-05/0.1812, allocations: 44.92 kB / 435.5 MB, free: 2.707 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/0.1813, allocations: 59.84 kB / 435.5 MB, free: 2.648 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/0.1827, allocations: 0.7343 MB / 436.2 MB, free: 1.906 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.1827, allocations: 0 / 436.2 MB, free: 1.906 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.822e-05/0.1828, allocations: 23.98 kB / 436.3 MB, free: 1.883 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.012e-05/0.1828, allocations: 23.92 kB / 436.3 MB, free: 1.859 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001545/0.1843, allocations: 0.8241 MB / 437.1 MB, free: 1.039 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005538/0.1899, allocations: 3.11 MB / 440.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.1911, allocations: 0.5829 MB / 440.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009986/0.1921, allocations: 0.6438 MB / 441.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2147/0.4069, allocations: 30.17 MB / 471.6 MB, free: 58.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007386/0.4076, allocations: 358.6 kB / 472 MB, free: 58.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.845e-06/0.4077, allocations: 0 / 472 MB, free: 58.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002371/0.41, allocations: 1.129 MB / 473.1 MB, free: 57.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/0.4101, allocations: 56.97 kB / 473.2 MB, free: 57.9 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003472/0.4136, allocations: 3.104 MB / 476.3 MB, free: 56.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.374e-05/0.4137, allocations: 39.66 kB / 476.3 MB, free: 56.26 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001011/0.4147, allocations: 1.576 MB / 477.9 MB, free: 54.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.4148, allocations: 172.4 kB / 478 MB, free: 54.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002424/0.415, allocations: 231.4 kB / 478.3 MB, free: 54.65 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.501e-05/0.4151, allocations: 333.9 kB / 478.6 MB, free: 54.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005086/0.4156, allocations: 243.7 kB / 478.8 MB, free: 54.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006019/0.4162, allocations: 0.6007 MB / 479.4 MB, free: 53.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001168/0.4174, allocations: 0.8985 MB / 480.3 MB, free: 52.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/0.4174, allocations: 3.938 kB / 480.3 MB, free: 52.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001859/0.4193, allocations: 1.248 MB / 481.6 MB, free: 52.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.4193, allocations: 11.78 kB / 481.6 MB, free: 52.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.861e-05/0.4194, allocations: 82.33 kB / 481.7 MB, free: 52.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.65e-05/0.4194, allocations: 23.47 kB / 481.7 MB, free: 52.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006496/0.4201, allocations: 204.4 kB / 481.9 MB, free: 52.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.79e-05/0.4201, allocations: 23.56 kB / 481.9 MB, free: 52.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009283/0.4211, allocations: 117.7 kB / 482 MB, free: 52.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-05/0.4212, allocations: 66.78 kB / 482.1 MB, free: 52.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0006684/0.4218, allocations: 463.1 kB / 482.6 MB, free: 51.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002526/0.4221, allocations: 400.1 kB / 482.9 MB, free: 51.65 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002171/0.4243, allocations: 1.212 MB / 484.2 MB, free: 51.08 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.4243, allocations: 3.5 kB / 484.2 MB, free: 51.08 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.4243, allocations: 0 / 484.2 MB, free: 51.08 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.4243, allocations: 7.422 kB / 484.2 MB, free: 51.08 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002913/0.4272, allocations: 2.161 MB / 486.3 MB, free: 49.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-05/0.4273, allocations: 72.27 kB / 486.4 MB, free: 49.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004646/0.4278, allocations: 93.42 kB / 486.5 MB, free: 49.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.4278, allocations: 3.156 kB / 486.5 MB, free: 49.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.177e-05/0.4279, allocations: 28.47 kB / 486.5 MB, free: 49.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.4279, allocations: 5.062 kB / 486.5 MB, free: 49.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.4279, allocations: 1.062 kB / 486.5 MB, free: 49.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.4297, allocations: 1.332 MB / 487.9 MB, free: 48.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007137/0.4305, allocations: 492 kB / 488.3 MB, free: 48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002417/0.4307, allocations: 15.94 kB / 488.4 MB, free: 47.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000647/0.4314, allocations: 27.95 kB / 488.4 MB, free: 47.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.4315, allocations: 65.89 kB / 488.4 MB, free: 47.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.93e-05/0.4316, allocations: 36 kB / 488.5 MB, free: 47.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001962/0.4336, allocations: 2.019 MB / 490.5 MB, free: 45.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4336, allocations: 3.938 kB / 490.5 MB, free: 45.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001154/0.4347, allocations: 0.6039 MB / 491.1 MB, free: 45.27 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0008975/0.4356, allocations: 0.7863 MB / 491.9 MB, free: 44.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001409/0.437, allocations: 0.81 MB / 492.7 MB, free: 43.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.4371, allocations: 0 / 492.7 MB, free: 43.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000637/0.4377, allocations: 451.8 kB / 493.1 MB, free: 43.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001561/0.4393, allocations: 0.5343 MB / 493.7 MB, free: 42.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004694/0.444, allocations: 4.527 MB / 498.2 MB, free: 38.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007037/0.4447, allocations: 1.714 MB / 499.9 MB, free: 36.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008079/0.4455, allocations: 362.5 kB / 0.4885 GB, free: 36.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001783/0.4457, allocations: 159.4 kB / 0.4887 GB, free: 35.97 MB / 382.1 MB Notification: Performance of SimCode: time 1.123e-06/0.4457, allocations: 0 / 0.4887 GB, free: 35.97 MB / 382.1 MB Notification: Performance of Templates: time 0.04562/0.4913, allocations: 32.77 MB / 0.5207 GB, free: 3.156 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)