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.004909/0.004909, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001151/0.001151, allocations: 197.2 kB / 16.68 MB, free: 5.93 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.426/1.426, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.001168/0.001168, allocations: 54.61 kB / 326.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09766/0.09884, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.006882/0.1058, allocations: 6.25 MB / 379.4 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003675/0.1095, allocations: 2.177 MB / 381.6 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003722/0.1099, allocations: 19.94 kB / 381.6 MB, free: 8.805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001824/0.1117, allocations: 0.7461 MB / 382.4 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001622/0.1133, allocations: 0.7961 MB / 383.2 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008762/0.1142, allocations: 0.4909 MB / 383.7 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001065/0.1153, allocations: 1.195 MB / 384.9 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001084/0.1164, allocations: 0.8354 MB / 385.7 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004769/0.1169, allocations: 470.2 kB / 386.1 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006339/0.1175, allocations: 0.5484 MB / 386.7 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000141/0.1177, allocations: 112 kB / 386.8 MB, free: 3.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000484/0.1182, allocations: 263.9 kB / 387.1 MB, free: 3.324 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002214/0.1184, allocations: 263.1 kB / 387.3 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004825/0.1189, allocations: 0.5481 MB / 387.9 MB, free: 2.516 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001544/0.1204, allocations: 1.456 MB / 389.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.1205, allocations: 4 kB / 389.3 MB, free: 1.051 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1205, allocations: 3.938 kB / 389.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.885e-05/0.1205, allocations: 0 / 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.003001/0.1235, allocations: 1.44 MB / 390.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.1235, allocations: 12.02 kB / 390.8 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002829/0.1264, allocations: 483 kB / 391.3 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008903/0.1273, allocations: 0.5656 MB / 391.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.854e-05/0.1274, allocations: 74.41 kB / 391.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001588/0.1275, allocations: 108.3 kB / 392 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001818/0.1294, allocations: 1.055 MB / 393.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.708e-05/0.1294, allocations: 11.84 kB / 393.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.296e-05/0.1295, allocations: 40 kB / 393.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.409e-05/0.1296, allocations: 24 kB / 393.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001699/0.1313, allocations: 0.9213 MB / 394.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005482/0.1368, allocations: 3.711 MB / 397.8 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002726/0.1395, allocations: 2.487 MB / 400.2 MB, free: 5.422 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008946/0.1404, allocations: 475.4 kB / 400.7 MB, free: 4.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001207/0.1405, allocations: 97.73 kB / 400.8 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008074/0.1414, allocations: 0.4891 MB / 401.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 2.604e-06/0.1414, allocations: 0 / 401.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=86): time 0.00422/0.1456, allocations: 1.698 MB / 403 MB, free: 2.574 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/0.1457, allocations: 204.9 kB / 403.2 MB, free: 2.332 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005285/0.1463, allocations: 466 kB / 403.7 MB, free: 1.867 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.289e-05/0.1463, allocations: 45.7 kB / 403.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00027/0.1466, allocations: 431.4 kB / 404.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/0.1468, allocations: 287.8 kB / 404.4 MB, free: 1.102 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002267/0.147, allocations: 162.6 kB / 404.6 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1472, allocations: 374.7 kB / 404.9 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005298/0.1477, allocations: 281.9 kB / 405.2 MB, free: 292 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007029/0.1484, allocations: 0.52 MB / 405.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001201/0.1497, allocations: 0.7992 MB / 406.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.1497, allocations: 0 / 406.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001878/0.1516, allocations: 1.084 MB / 407.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.1516, allocations: 8 kB / 407.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.1516, allocations: 8 kB / 407.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008813/0.1525, allocations: 269.5 kB / 407.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005686/0.1531, allocations: 159.7 kB / 408 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0058/0.1589, allocations: 4.86 MB / 412.9 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000591/0.1595, allocations: 103.1 kB / 413 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.243e-05/0.1596, allocations: 36 kB / 413 MB, free: 7.961 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.0004155/0.16, allocations: 257.6 kB / 413.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.1601, allocations: 75.09 kB / 413.4 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001847/0.162, allocations: 0.9637 MB / 414.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.162, allocations: 15.92 kB / 414.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.162, allocations: 4 kB / 414.3 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.162, allocations: 7.984 kB / 414.3 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003111/0.1651, allocations: 1.933 MB / 416.3 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1651, allocations: 0 / 416.3 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004374/0.1656, allocations: 103.8 kB / 416.4 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000762/0.1663, allocations: 261.5 kB / 416.6 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.177e-05/0.1664, allocations: 19.98 kB / 416.7 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005248/0.1717, allocations: 4.817 MB / 421.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1717, allocations: 0 / 421.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002429/0.1741, allocations: 1.385 MB / 422.9 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000266/0.1744, allocations: 216 kB / 423.1 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.163e-05/0.1745, allocations: 20 kB / 423.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004289/0.1749, allocations: 43.91 kB / 423.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/0.1751, allocations: 72.89 kB / 423.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.684e-05/0.1752, allocations: 24 kB / 423.2 MB, free: 13.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003453/0.1755, allocations: 322.8 kB / 423.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1755, allocations: 4 kB / 423.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001035/0.1766, allocations: 315.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.0002864/0.1769, allocations: 147.2 kB / 424 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002034/0.1789, allocations: 1.108 MB / 425.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.906e-06/0.1789, allocations: 0 / 425.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001297/0.1802, allocations: 0.7549 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.0007105/0.181, allocations: 118.5 kB / 426 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00354/0.1845, allocations: 1.689 MB / 427.7 MB, free: 8.797 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006557/0.1852, allocations: 0.9905 MB / 428.7 MB, free: 7.781 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003447/0.1856, allocations: 89.64 kB / 428.7 MB, free: 7.691 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.1857, allocations: 55.42 kB / 428.8 MB, free: 7.641 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1857, allocations: 0 / 428.8 MB, free: 7.641 MB / 366.1 MB Notification: Performance of Templates: time 0.02356/0.2093, allocations: 12.68 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)