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.001489/0.001489, allocations: 173.1 kB / 15.77 MB, free: 6.32 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.673/1.673, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0007387/0.0007388, allocations: 94.3 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1611/0.1611, allocations: 38.07 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003285/0.0003284, allocations: 8 kB / 422.7 MB, free: 26.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.106, allocations: 56.34 MB / 479.1 MB, free: 2.047 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.00934/0.1154, allocations: 6.562 MB / 485.6 MB, free: 11.45 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004015/0.1195, allocations: 1.72 MB / 487.4 MB, free: 9.727 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004345/0.12, allocations: 43.69 kB / 487.4 MB, free: 9.684 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004729/0.1204, allocations: 154.9 kB / 487.5 MB, free: 9.531 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009432/0.1214, allocations: 469.7 kB / 488 MB, free: 9.07 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005387/0.122, allocations: 215.7 kB / 488.2 MB, free: 8.859 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001184/0.1231, allocations: 1.316 MB / 489.5 MB, free: 7.539 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003531/0.1235, allocations: 251.6 kB / 489.8 MB, free: 7.293 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000536/0.1241, allocations: 386.3 kB / 490.2 MB, free: 6.914 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000712/0.1248, allocations: 0.5179 MB / 490.7 MB, free: 6.395 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.157e-05/0.1249, allocations: 32 kB / 490.7 MB, free: 6.363 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.125, allocations: 32 kB / 490.7 MB, free: 6.332 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002562/0.1253, allocations: 279.2 kB / 491 MB, free: 6.059 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001489/0.1254, allocations: 149.4 kB / 491.2 MB, free: 5.906 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00059/0.126, allocations: 0.6701 MB / 491.8 MB, free: 5.234 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.126, allocations: 0 / 491.8 MB, free: 5.234 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.126, allocations: 0 / 491.8 MB, free: 5.234 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.126, allocations: 0 / 491.8 MB, free: 5.234 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001796/0.1279, allocations: 0.9294 MB / 492.8 MB, free: 4.254 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.1279, allocations: 8.031 kB / 492.8 MB, free: 4.246 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.128, allocations: 75.11 kB / 492.8 MB, free: 4.172 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000883/0.1289, allocations: 0.5408 MB / 493.4 MB, free: 3.59 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001619/0.1291, allocations: 124.7 kB / 493.5 MB, free: 3.453 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.712e-05/0.1292, allocations: 55.91 kB / 493.6 MB, free: 3.398 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.1306, allocations: 0.8006 MB / 494.4 MB, free: 2.562 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.1306, allocations: 0 / 494.4 MB, free: 2.562 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.678e-05/0.1307, allocations: 20 kB / 494.4 MB, free: 2.543 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001268/0.1308, allocations: 40.92 kB / 494.4 MB, free: 2.504 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.1322, allocations: 0.722 MB / 495.1 MB, free: 1.781 MB / 330.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.003968/0.1362, allocations: 2.751 MB / 497.9 MB, free: 14.92 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/0.1378, allocations: 0.9247 MB / 498.8 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005577/0.1384, allocations: 349.3 kB / 499.2 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.1385, allocations: 11.91 kB / 499.2 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.1385, allocations: 38.5 kB / 499.2 MB, free: 13.54 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 1.783e-06/0.1385, allocations: 3.938 kB / 499.2 MB, free: 13.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.003621/0.1421, allocations: 2.019 MB / 0.4895 GB, free: 11.4 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.075e-05/0.1422, allocations: 81.11 kB / 0.4896 GB, free: 11.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004452/0.1426, allocations: 425.8 kB / 0.49 GB, free: 10.88 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.454e-05/0.1427, allocations: 29.7 kB / 0.49 GB, free: 10.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.1429, allocations: 316.2 kB / 0.4903 GB, free: 10.53 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.143, allocations: 138 kB / 0.4904 GB, free: 10.39 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.38e-05/0.143, allocations: 12.03 kB / 0.4904 GB, free: 10.38 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1432, allocations: 362.8 kB / 0.4908 GB, free: 10.02 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004714/0.1437, allocations: 253 kB / 0.491 GB, free: 9.766 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005304/0.1442, allocations: 362.1 kB / 0.4914 GB, free: 9.367 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005011/0.1447, allocations: 279.6 kB / 0.4916 GB, free: 9.094 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1447, allocations: 4 kB / 0.4916 GB, free: 9.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001341/0.1461, allocations: 0.8233 MB / 0.4924 GB, free: 8.234 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.1461, allocations: 8 kB / 0.4924 GB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.1461, allocations: 4 kB / 0.4925 GB, free: 8.223 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002454/0.1464, allocations: 73.67 kB / 0.4925 GB, free: 8.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00146/0.1478, allocations: 375.6 kB / 0.4929 GB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005495/0.1534, allocations: 6.147 MB / 0.4989 GB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004117/0.1538, allocations: 52.11 kB / 0.4989 GB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/0.1538, allocations: 16 kB / 0.4989 GB, free: 1.031 MB / 346.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.0003211/0.1542, allocations: 237.6 kB / 0.4992 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.03e-05/0.1543, allocations: 51.38 kB / 0.4992 GB, free: 0.7383 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.1556, allocations: 0.7611 MB / 0.5 GB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.1556, allocations: 8 kB / 0.5 GB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.1556, allocations: 0 / 0.5 GB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.1556, allocations: 11.97 kB / 0.5 GB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002361/0.158, allocations: 1.541 MB / 0.5015 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.158, allocations: 64 / 0.5015 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001572/0.1596, allocations: 403.6 kB / 0.5019 GB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002523/0.1598, allocations: 85.64 kB / 0.502 GB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.398e-05/0.1599, allocations: 15.98 kB / 0.502 GB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/0.1619, allocations: 2.884 MB / 0.5048 GB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.162, allocations: 0 / 0.5048 GB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001845/0.1638, allocations: 1.168 MB / 0.5059 GB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.164, allocations: 120.5 kB / 0.506 GB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.802e-05/0.164, allocations: 12 kB / 0.5061 GB, free: 9.281 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003256/0.1643, allocations: 47.91 kB / 0.5061 GB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.1645, allocations: 32.05 kB / 0.5061 GB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.361e-05/0.1645, allocations: 19.97 kB / 0.5061 GB, free: 9.184 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003458/0.1649, allocations: 295.1 kB / 0.5064 GB, free: 8.898 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1649, allocations: 0 / 0.5064 GB, free: 8.898 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006065/0.1655, allocations: 143.9 kB / 0.5066 GB, free: 8.758 MB / 362.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.0001641/0.1657, allocations: 111.2 kB / 0.5067 GB, free: 8.641 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002618/0.1683, allocations: 1.098 MB / 0.5077 GB, free: 7.516 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1683, allocations: 0 / 0.5077 GB, free: 7.516 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00188/0.1702, allocations: 0.818 MB / 0.5085 GB, free: 6.672 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007551/0.171, allocations: 125.9 kB / 0.5087 GB, free: 6.547 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002312/0.1733, allocations: 1.778 MB / 0.5104 GB, free: 4.727 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005031/0.1738, allocations: 0.9445 MB / 0.5113 GB, free: 3.758 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.1739, allocations: 43.42 kB / 0.5114 GB, free: 3.715 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.1739, allocations: 3.938 kB / 0.5114 GB, free: 3.711 MB / 362.7 MB Notification: Performance of Templates: time 0.1914/0.3654, allocations: 16.78 MB / 0.5278 GB, free: 47.3 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)