Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.008077/0.008077, allocations: 103.1 kB / 15.73 MB, free: 5.992 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.001363/0.001363, allocations: 191.9 kB / 16.67 MB, free: 5.918 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.37/1.37, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001783/0.001783, allocations: 49.59 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1111, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.007361/0.1186, allocations: 6.269 MB / 379.4 MB, free: 11 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004449/0.123, allocations: 2.169 MB / 381.6 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006963/0.1238, allocations: 19.94 kB / 381.6 MB, free: 8.805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002034/0.1259, allocations: 0.75 MB / 382.4 MB, free: 8.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001963/0.1278, allocations: 0.8039 MB / 383.2 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001115/0.129, allocations: 494.7 kB / 383.7 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.1302, allocations: 1.195 MB / 384.9 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001158/0.1314, allocations: 0.8393 MB / 385.7 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000501/0.1319, allocations: 470.2 kB / 386.2 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006205/0.1326, allocations: 0.5523 MB / 386.7 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001309/0.1327, allocations: 108 kB / 386.8 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005998/0.1333, allocations: 267.8 kB / 387.1 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002395/0.1336, allocations: 263.1 kB / 387.3 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005725/0.1341, allocations: 0.5442 MB / 387.9 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001891/0.136, allocations: 1.456 MB / 389.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.1361, allocations: 0 / 389.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1361, allocations: 3.938 kB / 389.3 MB, free: 1.043 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.6e-05/0.1361, allocations: 4 kB / 389.3 MB, free: 1.039 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.003395/0.1395, allocations: 1.44 MB / 390.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.1396, allocations: 12.03 kB / 390.8 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002967/0.1425, allocations: 479.1 kB / 391.3 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/0.1436, allocations: 0.5656 MB / 391.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.687e-05/0.1437, allocations: 78.41 kB / 391.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001822/0.1439, allocations: 104.4 kB / 392 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002118/0.146, allocations: 1.059 MB / 393.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.645e-05/0.1461, allocations: 3.906 kB / 393.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/0.1462, allocations: 40 kB / 393.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.298e-05/0.1462, allocations: 24 kB / 393.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00175/0.148, allocations: 0.9252 MB / 394.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005436/0.1534, allocations: 3.707 MB / 397.8 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002689/0.1562, allocations: 2.487 MB / 400.3 MB, free: 5.422 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009506/0.1571, allocations: 475.4 kB / 400.7 MB, free: 4.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.984e-05/0.1572, allocations: 93.75 kB / 400.8 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009039/0.1582, allocations: 0.4891 MB / 401.3 MB, free: 4.324 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 4.919e-06/0.1582, allocations: 3.984 kB / 401.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=86): time 0.004449/0.1626, allocations: 1.698 MB / 403 MB, free: 2.574 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.1628, allocations: 200.9 kB / 403.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005479/0.1633, allocations: 466 kB / 403.6 MB, free: 1.871 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.649e-05/0.1634, allocations: 45.7 kB / 403.7 MB, free: 1.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002926/0.1637, allocations: 431.4 kB / 404.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002005/0.1639, allocations: 287.8 kB / 404.4 MB, free: 1.105 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/0.1641, allocations: 162.6 kB / 404.6 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.1643, allocations: 386.7 kB / 404.9 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005529/0.1649, allocations: 269.9 kB / 405.2 MB, free: 296 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007514/0.1656, allocations: 0.5239 MB / 405.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001252/0.1669, allocations: 0.7992 MB / 406.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.1669, allocations: 4 kB / 406.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002015/0.1689, allocations: 1.076 MB / 407.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.1689, allocations: 8 kB / 407.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.169, allocations: 8 kB / 407.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008646/0.1698, allocations: 265.7 kB / 407.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005778/0.1704, allocations: 163.7 kB / 408 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005679/0.1761, allocations: 4.86 MB / 412.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006652/0.1768, allocations: 103.1 kB / 413 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.556e-05/0.1769, allocations: 48.05 kB / 413 MB, free: 7.953 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.0004071/0.1773, allocations: 245.5 kB / 413.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.1774, allocations: 75.09 kB / 413.4 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00198/0.1794, allocations: 0.9675 MB / 414.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.1794, allocations: 15.92 kB / 414.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1794, allocations: 4 kB / 414.3 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.1794, allocations: 3.984 kB / 414.3 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003164/0.1826, allocations: 1.936 MB / 416.3 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.1826, allocations: 0 / 416.3 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004532/0.1831, allocations: 107.8 kB / 416.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007622/0.1839, allocations: 257.5 kB / 416.6 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.2e-05/0.1839, allocations: 23.98 kB / 416.7 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005335/0.1893, allocations: 4.802 MB / 421.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.1893, allocations: 3.938 kB / 421.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/0.1918, allocations: 1.393 MB / 422.9 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002914/0.1921, allocations: 216 kB / 423.1 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.1922, allocations: 16 kB / 423.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004658/0.1926, allocations: 39.97 kB / 423.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000181/0.1928, allocations: 80.83 kB / 423.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.516e-05/0.1929, allocations: 20 kB / 423.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004085/0.1933, allocations: 330.8 kB / 423.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.1933, allocations: 0 / 423.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001234/0.1946, allocations: 311.1 kB / 423.9 MB, free: 12.71 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.0003138/0.1949, allocations: 147.2 kB / 424 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002186/0.1971, allocations: 1.112 MB / 425.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.1971, allocations: 0 / 425.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00118/0.1983, allocations: 0.7553 MB / 425.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007025/0.199, allocations: 118.1 kB / 426 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003301/0.2023, allocations: 1.678 MB / 427.7 MB, free: 8.809 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005759/0.2029, allocations: 0.9983 MB / 428.7 MB, free: 7.785 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003337/0.2032, allocations: 85.66 kB / 428.7 MB, free: 7.699 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001421/0.2034, allocations: 51.42 kB / 428.8 MB, free: 7.652 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2034, allocations: 0 / 428.8 MB, free: 7.652 MB / 366.1 MB Notification: Performance of Templates: time 0.02337/0.2268, allocations: 12.69 MB / 441.5 MB, free: 10.94 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1)