Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001656/0.001661, allocations: 191.3 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.991/1.991, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001162/0.001161, allocations: 90.88 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2675/0.2675, allocations: 38.05 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006248/0.0006249, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1091, allocations: 56.33 MB / 479 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.01019/0.1193, allocations: 6.03 MB / 485.1 MB, free: 11.98 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004492/0.1239, allocations: 1.662 MB / 486.7 MB, free: 10.31 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006765/0.1246, allocations: 35.75 kB / 486.8 MB, free: 10.28 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006512/0.1252, allocations: 143.1 kB / 486.9 MB, free: 10.14 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001318/0.1266, allocations: 323 kB / 487.2 MB, free: 9.82 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008103/0.1274, allocations: 187.7 kB / 487.4 MB, free: 9.637 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001154/0.1286, allocations: 0.5458 MB / 487.9 MB, free: 9.09 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005478/0.1292, allocations: 239.6 kB / 488.2 MB, free: 8.855 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007525/0.1299, allocations: 342.8 kB / 488.5 MB, free: 8.52 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007938/0.1308, allocations: 346.9 kB / 488.9 MB, free: 8.18 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000118/0.1309, allocations: 32 kB / 488.9 MB, free: 8.148 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000157/0.1311, allocations: 32 kB / 488.9 MB, free: 8.117 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003805/0.1314, allocations: 247.4 kB / 489.2 MB, free: 7.875 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002218/0.1317, allocations: 153.3 kB / 489.3 MB, free: 7.719 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009472/0.1326, allocations: 0.6312 MB / 489.9 MB, free: 7.086 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1327, allocations: 0 / 489.9 MB, free: 7.086 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1327, allocations: 0 / 489.9 MB, free: 7.086 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.1327, allocations: 0 / 489.9 MB, free: 7.086 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002871/0.1356, allocations: 0.9178 MB / 490.9 MB, free: 6.117 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.1356, allocations: 11.97 kB / 490.9 MB, free: 6.105 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002301/0.1359, allocations: 75.2 kB / 490.9 MB, free: 6.031 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0016/0.1375, allocations: 0.5368 MB / 491.5 MB, free: 5.453 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00028/0.1378, allocations: 116.7 kB / 491.6 MB, free: 5.324 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.138, allocations: 56 kB / 491.6 MB, free: 5.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00227/0.1403, allocations: 0.7811 MB / 492.4 MB, free: 4.453 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.586e-05/0.1403, allocations: 0 / 492.4 MB, free: 4.453 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.935e-05/0.1404, allocations: 24 kB / 492.5 MB, free: 4.43 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002022/0.1406, allocations: 40.92 kB / 492.5 MB, free: 4.391 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002684/0.1433, allocations: 0.7494 MB / 493.2 MB, free: 3.641 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006547/0.1499, allocations: 2.628 MB / 495.9 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002926/0.1529, allocations: 0.8478 MB / 496.7 MB, free: 32 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.527e-05/0.153, allocations: 8.438 kB / 496.7 MB, free: 24 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.085e-05/0.1531, allocations: 39 kB / 496.8 MB, free: 15.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 3.697e-06/0.1531, allocations: 0 / 496.8 MB, free: 15.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.007294/0.1604, allocations: 2.214 MB / 499 MB, free: 13.65 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.242e-05/0.1605, allocations: 81.55 kB / 499.1 MB, free: 13.55 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000675/0.1612, allocations: 394 kB / 499.4 MB, free: 13.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.367e-05/0.1613, allocations: 29.7 kB / 499.5 MB, free: 13.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002641/0.1616, allocations: 338.9 kB / 499.8 MB, free: 12.79 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/0.1618, allocations: 177.4 kB / 500 MB, free: 12.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.128e-05/0.1619, allocations: 12 kB / 500 MB, free: 12.6 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1621, allocations: 338.8 kB / 0.4886 GB, free: 12.26 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00104/0.1631, allocations: 288.9 kB / 0.4889 GB, free: 11.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.1643, allocations: 393.1 kB / 0.4892 GB, free: 11.55 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.1654, allocations: 322 kB / 0.4896 GB, free: 11.24 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.1654, allocations: 0 / 0.4896 GB, free: 11.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002712/0.1681, allocations: 0.8761 MB / 0.4904 GB, free: 10.33 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.1682, allocations: 8.156 kB / 0.4904 GB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.1682, allocations: 4 kB / 0.4904 GB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004046/0.1686, allocations: 77.66 kB / 0.4905 GB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003255/0.1719, allocations: 399.5 kB / 0.4909 GB, free: 9.848 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00986/0.1818, allocations: 6.237 MB / 0.497 GB, free: 3.074 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007997/0.1827, allocations: 52.02 kB / 0.497 GB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.635e-05/0.1827, allocations: 23.98 kB / 0.497 GB, free: 3 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005017/0.1833, allocations: 237.6 kB / 0.4973 GB, free: 2.758 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.1834, allocations: 51.44 kB / 0.4973 GB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002697/0.1861, allocations: 0.8554 MB / 0.4981 GB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.1861, allocations: 4 kB / 0.4982 GB, free: 1.816 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.1862, allocations: 7.984 kB / 0.4982 GB, free: 1.809 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.1862, allocations: 3.953 kB / 0.4982 GB, free: 1.805 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004866/0.1911, allocations: 1.719 MB / 0.4998 GB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-05/0.1911, allocations: 4 kB / 0.4998 GB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003637/0.1948, allocations: 427.6 kB / 0.5003 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000499/0.1953, allocations: 93.53 kB / 0.5003 GB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.592e-05/0.1954, allocations: 12 kB / 0.5004 GB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003257/0.1987, allocations: 2.911 MB / 0.5032 GB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.1987, allocations: 0 / 0.5032 GB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003984/0.2027, allocations: 1.445 MB / 0.5046 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001919/0.203, allocations: 120.5 kB / 0.5047 GB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.2031, allocations: 16.03 kB / 0.5047 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006626/0.2038, allocations: 47.95 kB / 0.5048 GB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/0.204, allocations: 43.89 kB / 0.5048 GB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.538e-05/0.204, allocations: 20 kB / 0.5048 GB, free: 10.46 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004685/0.2045, allocations: 275.1 kB / 0.5051 GB, free: 10.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-07/0.2045, allocations: 7.938 kB / 0.5051 GB, free: 10.19 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009702/0.2055, allocations: 144 kB / 0.5053 GB, free: 10.05 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001966/0.2057, allocations: 115.1 kB / 0.5054 GB, free: 9.926 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005202/0.2109, allocations: 1.198 MB / 0.5065 GB, free: 8.703 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.211, allocations: 0 / 0.5065 GB, free: 8.703 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003876/0.2149, allocations: 0.8843 MB / 0.5074 GB, free: 7.793 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.216, allocations: 129.4 kB / 0.5075 GB, free: 7.668 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005482/0.2215, allocations: 1.924 MB / 0.5094 GB, free: 5.695 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007593/0.2223, allocations: 0.9564 MB / 0.5103 GB, free: 4.711 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003232/0.2227, allocations: 47.42 kB / 0.5104 GB, free: 4.664 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/0.2227, allocations: 0 / 0.5104 GB, free: 4.664 MB / 362.7 MB Notification: Performance of Templates: time 0.3197/0.5424, allocations: 15.97 MB / 0.526 GB, free: 48.32 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)