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.00712/0.00712, allocations: 107 kB / 15.74 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.001611/0.001611, allocations: 199 kB / 16.68 MB, free: 5.957 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.458/1.458, allocations: 205.1 MB / 222.6 MB, free: 4.516 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.001211/0.001211, allocations: 51.8 kB / 326.5 MB, free: 14.55 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08389/0.08511, allocations: 46.63 MB / 373.2 MB, free: 1.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01264/0.09778, allocations: 14.6 MB / 387.8 MB, free: 2.766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02171/0.1195, allocations: 19.8 MB / 407.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002994/0.1226, allocations: 95.19 kB / 407.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004663/0.1273, allocations: 1.228 MB / 408.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008823/0.1362, allocations: 2.304 MB / 411.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004844/0.1411, allocations: 1.392 MB / 412.6 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01045/0.1515, allocations: 6.457 MB / 419 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008728/0.1525, allocations: 473.6 kB / 419.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001408/0.1539, allocations: 1.014 MB / 420.5 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001136/0.155, allocations: 1.118 MB / 421.6 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001779/0.1552, allocations: 76 kB / 421.7 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003766/0.159, allocations: 1.163 MB / 422.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003908/0.1594, allocations: 337.5 kB / 423.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001461/0.1609, allocations: 1.44 MB / 424.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004601/0.1655, allocations: 4.004 MB / 428.6 MB, free: 9.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1655, allocations: 0 / 428.6 MB, free: 9.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.187e-06/0.1655, allocations: 4 kB / 428.7 MB, free: 9.676 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.056e-05/0.1656, allocations: 0 / 428.7 MB, free: 9.676 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.005401/0.171, allocations: 3.845 MB / 432.5 MB, free: 5.754 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.171, allocations: 11.97 kB / 432.5 MB, free: 5.742 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004718/0.1715, allocations: 414.9 kB / 432.9 MB, free: 5.332 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003403/0.1749, allocations: 2.483 MB / 435.4 MB, free: 2.777 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.908e-05/0.175, allocations: 40.94 kB / 435.4 MB, free: 2.734 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.1751, allocations: 51.91 kB / 435.5 MB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.1765, allocations: 0.7343 MB / 436.2 MB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.1765, allocations: 0 / 436.2 MB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.658e-05/0.1766, allocations: 19.98 kB / 436.2 MB, free: 1.922 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.035e-05/0.1766, allocations: 23.98 kB / 436.3 MB, free: 1.898 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001561/0.1782, allocations: 0.8124 MB / 437.1 MB, free: 1.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005334/0.1835, allocations: 3.122 MB / 440.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.1848, allocations: 0.5791 MB / 440.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.1859, allocations: 0.6477 MB / 441.4 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2163/0.4022, allocations: 30.17 MB / 471.6 MB, free: 58.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000754/0.403, allocations: 364.8 kB / 472 MB, free: 57.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.206e-06/0.403, allocations: 0 / 472 MB, free: 57.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002231/0.4053, allocations: 1.124 MB / 473.1 MB, free: 57.62 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/0.4053, allocations: 62.48 kB / 473.1 MB, free: 57.56 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003575/0.4089, allocations: 3.105 MB / 476.2 MB, free: 55.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.253e-05/0.409, allocations: 36.48 kB / 476.3 MB, free: 55.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009795/0.41, allocations: 1.578 MB / 477.9 MB, free: 54.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.4101, allocations: 171.4 kB / 478 MB, free: 54.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002563/0.4104, allocations: 231.7 kB / 478.3 MB, free: 54.31 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.642e-05/0.4105, allocations: 337.8 kB / 478.6 MB, free: 53.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005597/0.411, allocations: 239.6 kB / 478.8 MB, free: 53.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006524/0.4117, allocations: 0.6026 MB / 479.4 MB, free: 53.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.4129, allocations: 0.8929 MB / 480.3 MB, free: 52.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.4129, allocations: 3.969 kB / 480.3 MB, free: 52.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001907/0.4148, allocations: 1.248 MB / 481.6 MB, free: 52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.4149, allocations: 15.77 kB / 481.6 MB, free: 52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-05/0.415, allocations: 78.84 kB / 481.7 MB, free: 52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.947e-05/0.415, allocations: 19.59 kB / 481.7 MB, free: 51.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006739/0.4157, allocations: 208.1 kB / 481.9 MB, free: 51.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.858e-05/0.4157, allocations: 27.52 kB / 481.9 MB, free: 51.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.4167, allocations: 110.2 kB / 482 MB, free: 51.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.414e-05/0.4168, allocations: 62.88 kB / 482.1 MB, free: 51.85 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.0007166/0.4176, allocations: 462.4 kB / 482.5 MB, free: 51.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002792/0.4178, allocations: 399.9 kB / 482.9 MB, free: 51.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002346/0.4202, allocations: 1.22 MB / 484.1 MB, free: 50.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.4202, allocations: 6.438 kB / 484.1 MB, free: 50.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.4202, allocations: 0 / 484.1 MB, free: 50.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.4202, allocations: 10.3 kB / 484.2 MB, free: 50.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003035/0.4233, allocations: 2.155 MB / 486.3 MB, free: 49.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.841e-05/0.4234, allocations: 73.45 kB / 486.4 MB, free: 49.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004809/0.4239, allocations: 94.89 kB / 486.5 MB, free: 49.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.4239, allocations: 0 / 486.5 MB, free: 49.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.314e-05/0.424, allocations: 37.08 kB / 486.5 MB, free: 49.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.139e-06/0.424, allocations: 2.875 kB / 486.5 MB, free: 49.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.424, allocations: 0 / 486.5 MB, free: 49.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/0.4259, allocations: 1.329 MB / 487.8 MB, free: 48.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006738/0.4266, allocations: 496 kB / 488.3 MB, free: 47.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002615/0.4269, allocations: 15.83 kB / 488.3 MB, free: 47.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006833/0.4276, allocations: 27.95 kB / 488.4 MB, free: 47.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.4277, allocations: 59.95 kB / 488.4 MB, free: 47.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.576e-05/0.4278, allocations: 39.98 kB / 488.5 MB, free: 47.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002169/0.43, allocations: 2.019 MB / 490.5 MB, free: 45.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.43, allocations: 0 / 490.5 MB, free: 45.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001416/0.4314, allocations: 0.5992 MB / 491.1 MB, free: 44.95 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.0009258/0.4323, allocations: 0.7897 MB / 491.9 MB, free: 44.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001464/0.4338, allocations: 0.8141 MB / 492.7 MB, free: 43.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4338, allocations: 0 / 492.7 MB, free: 43.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006604/0.4345, allocations: 447.2 kB / 493.1 MB, free: 42.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001669/0.4362, allocations: 0.5475 MB / 493.7 MB, free: 42.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005076/0.4413, allocations: 4.528 MB / 498.2 MB, free: 37.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006984/0.442, allocations: 1.714 MB / 499.9 MB, free: 36.14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009148/0.4429, allocations: 363 kB / 0.4885 GB, free: 35.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.4431, allocations: 151.4 kB / 0.4887 GB, free: 35.64 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4431, allocations: 0 / 0.4887 GB, free: 35.64 MB / 382.1 MB Notification: Performance of Templates: time 0.04607/0.4892, allocations: 32.17 MB / 0.5201 GB, free: 3.434 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)