Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.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.QuasiStationary.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005418/0.005418, allocations: 95.41 kB / 15.73 MB, free: 6.062 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.001368/0.001368, allocations: 197.2 kB / 16.68 MB, free: 5.984 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.461/1.461, allocations: 205.1 MB / 222.5 MB, free: 4.547 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.001141/0.001141, allocations: 50.14 kB / 326.5 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1056, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.007366/0.113, allocations: 6.265 MB / 379.4 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003803/0.1169, allocations: 2.173 MB / 381.6 MB, free: 8.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003741/0.1173, allocations: 19.94 kB / 381.6 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001673/0.119, allocations: 0.754 MB / 382.4 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001463/0.1204, allocations: 0.7883 MB / 383.2 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008499/0.1213, allocations: 0.4909 MB / 383.7 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001009/0.1223, allocations: 1.195 MB / 384.9 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001126/0.1235, allocations: 0.8315 MB / 385.7 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005309/0.124, allocations: 474.2 kB / 386.2 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006366/0.1246, allocations: 0.5445 MB / 386.7 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001432/0.1248, allocations: 112 kB / 386.8 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004774/0.1253, allocations: 267.8 kB / 387.1 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002111/0.1255, allocations: 267.1 kB / 387.3 MB, free: 3.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000468/0.126, allocations: 0.5442 MB / 387.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001475/0.1275, allocations: 1.463 MB / 389.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.1275, allocations: 0 / 389.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1275, allocations: 3.938 kB / 389.3 MB, free: 1.051 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.1275, allocations: 4 kB / 389.3 MB, free: 1.047 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.002917/0.1304, allocations: 1.47 MB / 390.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.1305, allocations: 8.031 kB / 390.8 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002962/0.1335, allocations: 483.8 kB / 391.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009043/0.1344, allocations: 0.5776 MB / 391.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.206e-05/0.1344, allocations: 74.41 kB / 391.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.1346, allocations: 104.4 kB / 392.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/0.1364, allocations: 1.063 MB / 393.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.167e-05/0.1364, allocations: 3.953 kB / 393.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-05/0.1365, allocations: 44 kB / 393.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.923e-05/0.1365, allocations: 24 kB / 393.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001672/0.1382, allocations: 0.9174 MB / 394.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005242/0.1435, allocations: 3.716 MB / 397.8 MB, free: 8.238 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002705/0.1462, allocations: 2.482 MB / 400.3 MB, free: 5.387 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009295/0.1471, allocations: 475.4 kB / 400.8 MB, free: 4.918 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001092/0.1473, allocations: 97.75 kB / 400.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008319/0.1481, allocations: 0.4891 MB / 401.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 2.454e-06/0.1481, allocations: 0 / 401.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=86): time 0.004542/0.1527, allocations: 1.702 MB / 403.1 MB, free: 2.535 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/0.1528, allocations: 188.9 kB / 403.2 MB, free: 2.309 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005557/0.1534, allocations: 477.9 kB / 403.7 MB, free: 1.832 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.278e-05/0.1534, allocations: 45.73 kB / 403.7 MB, free: 1.781 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003067/0.1537, allocations: 448.6 kB / 404.2 MB, free: 1.336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002104/0.154, allocations: 301.4 kB / 404.5 MB, free: 1.039 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002493/0.1542, allocations: 170.6 kB / 404.6 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1544, allocations: 374.7 kB / 405 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005465/0.1549, allocations: 273.9 kB / 405.3 MB, free: 228 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007553/0.1557, allocations: 0.5239 MB / 405.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/0.157, allocations: 0.7992 MB / 406.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.157, allocations: 0 / 406.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001996/0.159, allocations: 1.08 MB / 407.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.1591, allocations: 8 kB / 407.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.1591, allocations: 8.219 kB / 407.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008538/0.1599, allocations: 265.5 kB / 408 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005947/0.1605, allocations: 167.7 kB / 408.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005599/0.1662, allocations: 4.861 MB / 413 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007505/0.1669, allocations: 107.4 kB / 413.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.309e-05/0.167, allocations: 39.98 kB / 413.1 MB, free: 7.887 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,iDC2.mean.y,$PRE.iDC2.mean.y,iAC.mean2.y,$PRE.iAC.mean2.y,iAC.mean1.y,$PRE.iAC.mean1.y,rectifierAC.idealDiode4.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0004354/0.1675, allocations: 253.5 kB / 413.4 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.1676, allocations: 83.45 kB / 413.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001955/0.1696, allocations: 0.9599 MB / 414.4 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.1696, allocations: 11.94 kB / 414.4 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.1696, allocations: 0 / 414.4 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.1696, allocations: 3.984 kB / 414.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003171/0.1728, allocations: 1.952 MB / 416.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.1728, allocations: 0 / 416.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000466/0.1733, allocations: 99.88 kB / 416.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007709/0.1741, allocations: 265.4 kB / 416.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.085e-05/0.1741, allocations: 19.98 kB / 416.8 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00524/0.1794, allocations: 4.806 MB / 421.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.1794, allocations: 3.984 kB / 421.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002493/0.1819, allocations: 1.393 MB / 423 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002913/0.1822, allocations: 216.4 kB / 423.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.695e-05/0.1823, allocations: 20 kB / 423.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000452/0.1827, allocations: 48.14 kB / 423.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.1829, allocations: 72.84 kB / 423.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-05/0.183, allocations: 31.92 kB / 423.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003641/0.1834, allocations: 322.8 kB / 423.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1834, allocations: 0 / 423.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001076/0.1844, allocations: 311.3 kB / 424 MB, free: 12.62 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (voltageQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002791/0.1847, allocations: 159.1 kB / 424.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002134/0.1869, allocations: 1.115 MB / 425.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.1869, allocations: 1.25 kB / 425.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.1881, allocations: 0.7546 MB / 426 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006436/0.1888, allocations: 130.2 kB / 426.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003112/0.1919, allocations: 1.699 MB / 427.8 MB, free: 8.668 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00067/0.1926, allocations: 0.9905 MB / 428.8 MB, free: 7.652 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000321/0.1929, allocations: 89.64 kB / 428.9 MB, free: 7.562 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.1931, allocations: 59.42 kB / 429 MB, free: 7.508 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1931, allocations: 0 / 429 MB, free: 7.508 MB / 366.1 MB Notification: Performance of Templates: time 0.02365/0.2167, allocations: 12.67 MB / 441.6 MB, free: 10.82 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1)