Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001151/0.001151, allocations: 108.3 kB / 16.92 MB, free: 5.754 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.001069/0.001069, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.442/1.442, allocations: 205.1 MB / 223.7 MB, free: 12.35 MB / 190.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.001697/0.001697, allocations: 51.88 kB / 280 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1206, allocations: 46.62 MB / 326.6 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.007874/0.1286, allocations: 6.269 MB / 332.9 MB, free: 14.17 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004562/0.1332, allocations: 2.169 MB / 335.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007558/0.134, allocations: 23.94 kB / 335.1 MB, free: 11.97 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001993/0.136, allocations: 0.75 MB / 335.8 MB, free: 11.21 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002086/0.1381, allocations: 0.7845 MB / 336.6 MB, free: 10.43 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.1392, allocations: 0.4948 MB / 337.1 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001309/0.1405, allocations: 1.187 MB / 338.3 MB, free: 8.738 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001133/0.1417, allocations: 0.8354 MB / 339.1 MB, free: 7.883 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005229/0.1422, allocations: 466.3 kB / 339.6 MB, free: 7.426 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006493/0.1429, allocations: 0.5445 MB / 340.1 MB, free: 6.879 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001411/0.143, allocations: 116 kB / 340.2 MB, free: 6.766 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000579/0.1436, allocations: 267.9 kB / 340.5 MB, free: 6.504 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002009/0.1438, allocations: 251.1 kB / 340.8 MB, free: 6.258 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004763/0.1443, allocations: 0.5519 MB / 341.3 MB, free: 5.703 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001416/0.1457, allocations: 1.448 MB / 342.8 MB, free: 4.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.1457, allocations: 0 / 342.8 MB, free: 4.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1458, allocations: 0 / 342.8 MB, free: 4.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.953e-05/0.1458, allocations: 0 / 342.8 MB, free: 4.25 MB / 286.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.003308/0.1491, allocations: 1.44 MB / 344.2 MB, free: 2.754 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.1491, allocations: 12.03 kB / 344.2 MB, free: 2.742 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002933/0.1521, allocations: 471.2 kB / 344.7 MB, free: 2.281 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009381/0.153, allocations: 0.5656 MB / 345.2 MB, free: 1.672 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.725e-05/0.1531, allocations: 74.41 kB / 345.3 MB, free: 1.598 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001399/0.1533, allocations: 108.4 kB / 345.4 MB, free: 1.492 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/0.155, allocations: 1.055 MB / 346.5 MB, free: 396 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.685e-05/0.1551, allocations: 4 kB / 346.5 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/0.1552, allocations: 40 kB / 346.5 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.105e-05/0.1552, allocations: 24 kB / 346.5 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001666/0.1569, allocations: 0.9252 MB / 347.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005489/0.1624, allocations: 3.738 MB / 351.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00302/0.1654, allocations: 2.494 MB / 353.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009428/0.1664, allocations: 479.4 kB / 354.2 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001055/0.1665, allocations: 85.77 kB / 354.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009419/0.1675, allocations: 0.493 MB / 354.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 3.416e-06/0.1675, allocations: 0 / 354.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=86): time 0.004733/0.1722, allocations: 1.701 MB / 356.4 MB, free: 5.758 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.1724, allocations: 193 kB / 356.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007323/0.1731, allocations: 474 kB / 357.1 MB, free: 5.051 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.153e-05/0.1732, allocations: 45.7 kB / 357.1 MB, free: 5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003905/0.1736, allocations: 431.4 kB / 357.6 MB, free: 4.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002779/0.1739, allocations: 276 kB / 357.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002811/0.1742, allocations: 170.4 kB / 358 MB, free: 4.125 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.1744, allocations: 382.7 kB / 358.4 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005936/0.175, allocations: 277.9 kB / 358.6 MB, free: 3.469 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007404/0.1758, allocations: 0.52 MB / 359.2 MB, free: 2.848 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/0.1771, allocations: 0.8031 MB / 360 MB, free: 1.949 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.1772, allocations: 0 / 360 MB, free: 1.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00232/0.1795, allocations: 1.08 MB / 361 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.1795, allocations: 11.94 kB / 361 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.1795, allocations: 8 kB / 361.1 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008685/0.1804, allocations: 273.5 kB / 361.3 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005702/0.181, allocations: 159.7 kB / 361.5 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005731/0.1868, allocations: 4.863 MB / 366.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006445/0.1874, allocations: 107.1 kB / 366.4 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-05/0.1875, allocations: 39.98 kB / 366.5 MB, free: 11.12 MB / 318.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.0004163/0.1879, allocations: 249.7 kB / 366.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.188, allocations: 75.09 kB / 366.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001916/0.1899, allocations: 0.9677 MB / 367.8 MB, free: 9.816 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.19, allocations: 8 kB / 367.8 MB, free: 9.809 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.19, allocations: 0 / 367.8 MB, free: 9.809 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.19, allocations: 3.984 kB / 367.8 MB, free: 9.805 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003091/0.1931, allocations: 1.951 MB / 369.7 MB, free: 7.781 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.1931, allocations: 4.031 kB / 369.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004267/0.1935, allocations: 91.89 kB / 369.8 MB, free: 7.688 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007368/0.1943, allocations: 269.6 kB / 370.1 MB, free: 7.418 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.223e-05/0.1944, allocations: 27.92 kB / 370.1 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005393/0.1998, allocations: 4.809 MB / 374.9 MB, free: 2.305 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1998, allocations: 0 / 374.9 MB, free: 2.305 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002627/0.2024, allocations: 1.392 MB / 376.3 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003268/0.2028, allocations: 212.1 kB / 376.5 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.2029, allocations: 20 kB / 376.5 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004706/0.2034, allocations: 39.97 kB / 376.6 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.2036, allocations: 80.83 kB / 376.7 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.955e-05/0.2036, allocations: 24 kB / 376.7 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003777/0.204, allocations: 330.7 kB / 377 MB, free: 180 kB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.204, allocations: 0 / 377 MB, free: 180 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.171/0.375, allocations: 309.5 kB / 377.3 MB, free: 52.39 MB / 318.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.0004431/0.3754, allocations: 148 kB / 377.5 MB, free: 52.3 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002806/0.3783, allocations: 1.142 MB / 378.6 MB, free: 52.06 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.3783, allocations: 0 / 378.6 MB, free: 52.06 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001444/0.3797, allocations: 0.7415 MB / 379.3 MB, free: 51.79 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008792/0.3806, allocations: 128.2 kB / 379.5 MB, free: 51.79 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003755/0.3844, allocations: 1.698 MB / 381.2 MB, free: 51.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006874/0.3851, allocations: 0.9975 MB / 382.2 MB, free: 50.46 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000459/0.3856, allocations: 87.12 kB / 382.2 MB, free: 50.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001658/0.3858, allocations: 51.61 kB / 382.3 MB, free: 50.45 MB / 318.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3858, allocations: 0 / 382.3 MB, free: 50.45 MB / 318.1 MB Notification: Performance of Templates: time 0.02667/0.4124, allocations: 12.54 MB / 394.8 MB, free: 46.53 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1)