Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.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.Elementary.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009361/0.0009362, allocations: 171.9 kB / 16.07 MB, free: 5.723 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.183/1.183, allocations: 205.4 MB / 222.2 MB, free: 9.02 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.0006968/0.0006968, allocations: 93.05 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1617/0.1617, allocations: 38.08 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003362/0.0003364, allocations: 12 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.2128, allocations: 56.32 MB / 479.6 MB, free: 9.223 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.005424/0.2183, allocations: 6.603 MB / 486.2 MB, free: 4.797 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002411/0.2207, allocations: 1.727 MB / 488 MB, free: 3.559 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004296/0.2212, allocations: 43.72 kB / 488 MB, free: 3.539 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004906/0.2217, allocations: 151.9 kB / 488.2 MB, free: 3.465 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009226/0.2226, allocations: 468.7 kB / 488.6 MB, free: 3.215 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005759/0.2232, allocations: 223.3 kB / 488.8 MB, free: 3.109 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00131/0.2245, allocations: 1.317 MB / 490.1 MB, free: 2.633 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003946/0.2249, allocations: 287.5 kB / 490.4 MB, free: 2.527 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005984/0.2255, allocations: 388.8 kB / 490.8 MB, free: 2.379 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000741/0.2263, allocations: 0.519 MB / 491.3 MB, free: 2.215 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.185e-05/0.2264, allocations: 32.84 kB / 491.4 MB, free: 2.215 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.2265, allocations: 31.22 kB / 491.4 MB, free: 2.215 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002887/0.2268, allocations: 283.3 kB / 491.7 MB, free: 2.137 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003271/0.2271, allocations: 338.2 kB / 492 MB, free: 1.945 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007259/0.2279, allocations: 0.6649 MB / 492.7 MB, free: 1.801 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2279, allocations: 0 / 492.7 MB, free: 1.801 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2279, allocations: 0 / 492.7 MB, free: 1.801 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.2279, allocations: 7.938 kB / 492.7 MB, free: 1.793 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001681/0.2296, allocations: 0.9129 MB / 493.6 MB, free: 1.184 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.2296, allocations: 13.59 kB / 493.6 MB, free: 1.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.2298, allocations: 77.41 kB / 493.7 MB, free: 1.141 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008084/0.2306, allocations: 0.5459 MB / 494.2 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001494/0.2307, allocations: 126.8 kB / 494.3 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.612e-05/0.2309, allocations: 59.34 kB / 494.4 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.2322, allocations: 0.7963 MB / 495.2 MB, free: 324 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.2322, allocations: 1.156 kB / 495.2 MB, free: 324 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.604e-05/0.2323, allocations: 21.78 kB / 495.2 MB, free: 308 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001202/0.2324, allocations: 35.19 kB / 495.2 MB, free: 304 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.2338, allocations: 0.7218 MB / 496 MB, free: 84 kB / 314.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0041/0.2379, allocations: 2.764 MB / 498.7 MB, free: 14.33 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00169/0.2396, allocations: 0.9315 MB / 499.7 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005629/0.2402, allocations: 349 kB / 0.4883 GB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.298e-05/0.2402, allocations: 3.188 kB / 0.4883 GB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.2403, allocations: 41.5 kB / 0.4883 GB, free: 13.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=38): time 2.384e-06/0.2403, allocations: 0 / 0.4883 GB, free: 13.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.003562/0.2438, allocations: 2.01 MB / 0.4903 GB, free: 12.19 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/0.2439, allocations: 84.92 kB / 0.4904 GB, free: 12.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004699/0.2444, allocations: 420.9 kB / 0.4908 GB, free: 11.83 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.063e-05/0.2444, allocations: 43.8 kB / 0.4908 GB, free: 11.79 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001881/0.2446, allocations: 319.3 kB / 0.4911 GB, free: 11.5 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.2447, allocations: 138.7 kB / 0.4913 GB, free: 11.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.639e-05/0.2448, allocations: 9.188 kB / 0.4913 GB, free: 11.38 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.2449, allocations: 363.9 kB / 0.4916 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004807/0.2454, allocations: 251.5 kB / 0.4918 GB, free: 10.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005217/0.2459, allocations: 366.4 kB / 0.4922 GB, free: 10.65 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009894/0.2469, allocations: 0.606 MB / 0.4928 GB, free: 10.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2469, allocations: 1.031 kB / 0.4928 GB, free: 10.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001342/0.2483, allocations: 0.8172 MB / 0.4936 GB, free: 9.797 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/0.2483, allocations: 6.375 kB / 0.4936 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.2484, allocations: 8.25 kB / 0.4936 GB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002392/0.2486, allocations: 72.83 kB / 0.4937 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001421/0.25, allocations: 376.5 kB / 0.494 GB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005322/0.2554, allocations: 6.157 MB / 0.5 GB, free: 3.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004362/0.2558, allocations: 41.88 kB / 0.5001 GB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.076e-05/0.2559, allocations: 25.02 kB / 0.5001 GB, free: 3.703 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (54): * Single equations (assignments): 50 * 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.0003653/0.2562, allocations: 236.5 kB / 0.5003 GB, free: 3.516 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.914e-05/0.2563, allocations: 49.69 kB / 0.5004 GB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.2577, allocations: 0.7661 MB / 0.5011 GB, free: 3.008 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.2577, allocations: 3.25 kB / 0.5011 GB, free: 3.008 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.2577, allocations: 6.188 kB / 0.5011 GB, free: 3.004 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.2577, allocations: 3.984 kB / 0.5011 GB, free: 3 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002469/0.2602, allocations: 1.526 MB / 0.5026 GB, free: 1.961 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.2602, allocations: 5.172 kB / 0.5026 GB, free: 1.957 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001626/0.2618, allocations: 402.9 kB / 0.503 GB, free: 1.695 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002616/0.2621, allocations: 89.53 kB / 0.5031 GB, free: 1.602 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.955e-05/0.2622, allocations: 11.98 kB / 0.5031 GB, free: 1.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00205/0.2642, allocations: 2.891 MB / 0.5059 GB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.2642, allocations: 8.188 kB / 0.506 GB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001838/0.2661, allocations: 1.164 MB / 0.5071 GB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/0.2663, allocations: 120.5 kB / 0.5072 GB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.791e-05/0.2663, allocations: 12.03 kB / 0.5072 GB, free: 13.06 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003241/0.2667, allocations: 39.97 kB / 0.5073 GB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.2668, allocations: 43.88 kB / 0.5073 GB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.962e-05/0.2668, allocations: 8 kB / 0.5073 GB, free: 12.97 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003442/0.2672, allocations: 295.1 kB / 0.5076 GB, free: 12.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2672, allocations: 0 / 0.5076 GB, free: 12.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006778/0.2679, allocations: 140 kB / 0.5077 GB, free: 12.55 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (39): * Single equations (assignments): 36 * 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.00013/0.268, allocations: 110.5 kB / 0.5078 GB, free: 12.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002526/0.2706, allocations: 1.107 MB / 0.5089 GB, free: 11.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.2706, allocations: 0 / 0.5089 GB, free: 11.3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001843/0.2724, allocations: 0.8253 MB / 0.5097 GB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009299/0.2734, allocations: 134.5 kB / 0.5098 GB, free: 10.32 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.2759, allocations: 1.767 MB / 0.5116 GB, free: 8.508 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006136/0.2766, allocations: 0.9523 MB / 0.5125 GB, free: 7.531 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001935/0.2768, allocations: 39.44 kB / 0.5125 GB, free: 7.492 MB / 346.7 MB Notification: Performance of SimCode: time 6.62e-07/0.2768, allocations: 0 / 0.5125 GB, free: 7.492 MB / 346.7 MB Notification: Performance of Templates: time 0.02165/0.2984, allocations: 16.77 MB / 0.5289 GB, free: 6.703 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1)