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.005125/0.005125, allocations: 101.8 kB / 15.73 MB, free: 6 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.001173/0.001173, allocations: 193.5 kB / 16.67 MB, free: 5.926 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.388/1.388, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.00136/0.00136, allocations: 53.97 kB / 326.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1038, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.007767/0.1116, allocations: 6.257 MB / 379.4 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004213/0.1159, allocations: 2.177 MB / 381.6 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005024/0.1164, allocations: 16 kB / 381.6 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001883/0.1183, allocations: 0.7539 MB / 382.4 MB, free: 8.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001742/0.1201, allocations: 0.7845 MB / 383.2 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.1211, allocations: 0.4908 MB / 383.7 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001244/0.1224, allocations: 1.195 MB / 384.9 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001129/0.1235, allocations: 0.8393 MB / 385.7 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000509/0.124, allocations: 470.2 kB / 386.1 MB, free: 4.246 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007023/0.1247, allocations: 0.5445 MB / 386.7 MB, free: 3.699 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001436/0.1249, allocations: 112 kB / 386.8 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004893/0.1254, allocations: 267.8 kB / 387.1 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002028/0.1256, allocations: 259.1 kB / 387.3 MB, free: 3.074 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004821/0.1261, allocations: 0.5519 MB / 387.9 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001455/0.1276, allocations: 1.452 MB / 389.3 MB, free: 1.062 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.1276, allocations: 0 / 389.3 MB, free: 1.062 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1276, allocations: 7.938 kB / 389.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.427e-05/0.1276, allocations: 0 / 389.3 MB, free: 1.055 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.003076/0.1307, allocations: 1.444 MB / 390.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.1308, allocations: 12.03 kB / 390.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002892/0.1337, allocations: 479 kB / 391.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009222/0.1346, allocations: 0.5656 MB / 391.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.005e-05/0.1347, allocations: 74.41 kB / 391.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/0.1348, allocations: 112.4 kB / 392 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001852/0.1367, allocations: 1.051 MB / 393.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.462e-05/0.1367, allocations: 7.906 kB / 393.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.1368, allocations: 43.98 kB / 393.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.089e-05/0.1369, allocations: 28 kB / 393.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001693/0.1386, allocations: 0.9096 MB / 394 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005415/0.144, allocations: 3.715 MB / 397.8 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002756/0.1468, allocations: 2.482 MB / 400.2 MB, free: 5.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009275/0.1477, allocations: 471.4 kB / 400.7 MB, free: 4.973 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001095/0.1478, allocations: 101.7 kB / 400.8 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008509/0.1487, allocations: 0.4891 MB / 401.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 3.447e-06/0.1487, allocations: 0 / 401.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=86): time 0.004513/0.1532, allocations: 1.701 MB / 403 MB, free: 2.586 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.1534, allocations: 192.9 kB / 403.2 MB, free: 2.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005546/0.1539, allocations: 466 kB / 403.6 MB, free: 1.891 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.555e-05/0.154, allocations: 45.69 kB / 403.7 MB, free: 1.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002954/0.1543, allocations: 431.5 kB / 404.1 MB, free: 1.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002195/0.1545, allocations: 291.8 kB / 404.4 MB, free: 1.121 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002453/0.1548, allocations: 162.6 kB / 404.5 MB, free: 0.957 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.1549, allocations: 382.7 kB / 404.9 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005484/0.1555, allocations: 277.9 kB / 405.2 MB, free: 308 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006989/0.1562, allocations: 0.5239 MB / 405.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.1574, allocations: 0.8031 MB / 406.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.1574, allocations: 4 kB / 406.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00198/0.1594, allocations: 1.068 MB / 407.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.1595, allocations: 11.94 kB / 407.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.1595, allocations: 8 kB / 407.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009017/0.1604, allocations: 265.7 kB / 407.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005965/0.161, allocations: 167.7 kB / 408 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005436/0.1664, allocations: 4.856 MB / 412.9 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007539/0.1672, allocations: 103.1 kB / 413 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.089e-05/0.1673, allocations: 40.06 kB / 413 MB, free: 7.973 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.0004537/0.1678, allocations: 253.7 kB / 413.3 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.1679, allocations: 75.09 kB / 413.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001975/0.1699, allocations: 0.9752 MB / 414.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.1699, allocations: 11.94 kB / 414.3 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.1699, allocations: 0 / 414.3 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.1699, allocations: 7.984 kB / 414.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003091/0.173, allocations: 1.933 MB / 416.3 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.173, allocations: 0 / 416.3 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004445/0.1735, allocations: 103.9 kB / 416.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008055/0.1743, allocations: 265.4 kB / 416.6 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.221e-05/0.1744, allocations: 16 kB / 416.6 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005353/0.1797, allocations: 4.809 MB / 421.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.1797, allocations: 4.031 kB / 421.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002538/0.1823, allocations: 1.393 MB / 422.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003594/0.1827, allocations: 212 kB / 423.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.032e-05/0.1828, allocations: 20 kB / 423.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004607/0.1832, allocations: 39.97 kB / 423.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001842/0.1834, allocations: 72.91 kB / 423.2 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.355e-05/0.1835, allocations: 27.98 kB / 423.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004107/0.1839, allocations: 322.8 kB / 423.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1839, allocations: 0 / 423.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001295/0.1852, allocations: 311.3 kB / 423.8 MB, free: 12.73 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.000288/0.1855, allocations: 159 kB / 424 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002105/0.1876, allocations: 1.108 MB / 425.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.1876, allocations: 0 / 425.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001139/0.1888, allocations: 0.7436 MB / 425.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006416/0.1894, allocations: 134 kB / 426 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003111/0.1926, allocations: 1.678 MB / 427.7 MB, free: 8.812 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005535/0.1931, allocations: 0.9983 MB / 428.7 MB, free: 7.789 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000326/0.1935, allocations: 89.64 kB / 428.7 MB, free: 7.699 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.1936, allocations: 47.44 kB / 428.8 MB, free: 7.656 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1936, allocations: 0 / 428.8 MB, free: 7.656 MB / 366.1 MB Notification: Performance of Templates: time 0.02145/0.2151, allocations: 13.06 MB / 441.8 MB, free: 10.57 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)