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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001612/0.001616, 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.996/1.996, 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.001128/0.001128, allocations: 94.8 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2884/0.2884, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004584/0.0004586, allocations: 16 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1127, allocations: 56.33 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.01008/0.1228, allocations: 6.041 MB / 485.2 MB, free: 11.88 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004368/0.1273, allocations: 1.658 MB / 486.8 MB, free: 10.21 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000663/0.128, allocations: 39.69 kB / 486.9 MB, free: 10.17 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000651/0.1286, allocations: 139.1 kB / 487 MB, free: 10.04 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00142/0.1301, allocations: 323 kB / 487.3 MB, free: 9.719 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008486/0.131, allocations: 187.7 kB / 487.5 MB, free: 9.535 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001233/0.1322, allocations: 0.5458 MB / 488.1 MB, free: 8.988 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005494/0.1328, allocations: 243.6 kB / 488.3 MB, free: 8.75 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008226/0.1336, allocations: 338.8 kB / 488.6 MB, free: 8.418 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008504/0.1345, allocations: 350.9 kB / 489 MB, free: 8.074 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.1346, allocations: 32 kB / 489 MB, free: 8.043 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001701/0.1348, allocations: 28 kB / 489 MB, free: 8.016 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003911/0.1352, allocations: 247.4 kB / 489.3 MB, free: 7.773 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002382/0.1355, allocations: 157.3 kB / 489.4 MB, free: 7.613 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009916/0.1365, allocations: 0.6312 MB / 490 MB, free: 6.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1365, allocations: 0 / 490 MB, free: 6.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1365, allocations: 0 / 490 MB, free: 6.98 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.1365, allocations: 0 / 490 MB, free: 6.98 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.00296/0.1395, allocations: 0.9139 MB / 491 MB, free: 6.016 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.1396, allocations: 8.031 kB / 491 MB, free: 6.008 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002171/0.1398, allocations: 110.4 kB / 491.1 MB, free: 5.891 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001838/0.14, allocations: 67.25 kB / 491.1 MB, free: 5.824 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001584/0.1416, allocations: 0.5291 MB / 491.7 MB, free: 5.254 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000262/0.1419, allocations: 120.7 kB / 491.8 MB, free: 5.121 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000159/0.1421, allocations: 56 kB / 491.8 MB, free: 5.066 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002297/0.1444, allocations: 0.7811 MB / 492.6 MB, free: 4.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.696e-05/0.1444, allocations: 3.938 kB / 492.6 MB, free: 4.246 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.292e-05/0.1445, allocations: 27.95 kB / 492.7 MB, free: 4.219 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002014/0.1448, allocations: 40.97 kB / 492.7 MB, free: 4.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002665/0.1474, allocations: 0.7494 MB / 493.4 MB, free: 3.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00661/0.1541, allocations: 2.628 MB / 496.1 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002981/0.1571, allocations: 0.844 MB / 496.9 MB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.55e-05/0.1572, allocations: 8.484 kB / 496.9 MB, free: 15.81 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.175e-05/0.1573, allocations: 39 kB / 497 MB, free: 15.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 3.938e-06/0.1573, allocations: 0 / 497 MB, free: 15.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.007423/0.1647, allocations: 2.21 MB / 499.2 MB, free: 13.44 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.637e-05/0.1648, allocations: 85.53 kB / 499.3 MB, free: 13.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006724/0.1655, allocations: 397.9 kB / 499.6 MB, free: 12.95 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.164e-05/0.1656, allocations: 33.7 kB / 499.7 MB, free: 12.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002633/0.1659, allocations: 334.8 kB / 0.4883 GB, free: 12.58 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002264/0.1661, allocations: 173.5 kB / 0.4885 GB, free: 12.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.976e-05/0.1662, allocations: 12 kB / 0.4885 GB, free: 12.39 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.1664, allocations: 338.8 kB / 0.4888 GB, free: 12.05 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001047/0.1674, allocations: 284.9 kB / 0.4891 GB, free: 11.78 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/0.1686, allocations: 401 kB / 0.4894 GB, free: 11.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001129/0.1697, allocations: 318 kB / 0.4897 GB, free: 11.04 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.1698, allocations: 3.938 kB / 0.4897 GB, free: 11.03 MB / 346.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002758/0.1725, allocations: 0.8763 MB / 0.4906 GB, free: 10.12 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.536e-05/0.1726, allocations: 8 kB / 0.4906 GB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.1726, allocations: 0 / 0.4906 GB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004261/0.1731, allocations: 81.56 kB / 0.4907 GB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003241/0.1763, allocations: 391.7 kB / 0.4911 GB, free: 9.645 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01007/0.1864, allocations: 6.241 MB / 0.4972 GB, free: 2.867 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000807/0.1873, allocations: 47.95 kB / 0.4972 GB, free: 2.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.645e-05/0.1874, allocations: 16 kB / 0.4972 GB, free: 2.805 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.000504/0.1879, allocations: 249.8 kB / 0.4975 GB, free: 2.551 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.188, allocations: 47.44 kB / 0.4975 GB, free: 2.504 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002775/0.1908, allocations: 0.8554 MB / 0.4983 GB, free: 1.617 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/0.1909, allocations: 4 kB / 0.4983 GB, free: 1.613 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.609e-06/0.1909, allocations: 7.953 kB / 0.4984 GB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.1909, allocations: 3.984 kB / 0.4984 GB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004925/0.1959, allocations: 1.719 MB / 0.5 GB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.1959, allocations: 4 kB / 0.5 GB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003593/0.1995, allocations: 427.7 kB / 0.5004 GB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000481/0.2, allocations: 89.55 kB / 0.5005 GB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.323e-05/0.2001, allocations: 15.98 kB / 0.5005 GB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003299/0.2034, allocations: 2.907 MB / 0.5034 GB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.2035, allocations: 3.938 kB / 0.5034 GB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003999/0.2075, allocations: 1.449 MB / 0.5048 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001971/0.2077, allocations: 116.5 kB / 0.5049 GB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001146/0.2079, allocations: 12 kB / 0.5049 GB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006549/0.2085, allocations: 47.95 kB / 0.505 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002033/0.2087, allocations: 59.75 kB / 0.505 GB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.442e-05/0.2088, allocations: 16 kB / 0.505 GB, free: 10.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005004/0.2093, allocations: 275.1 kB / 0.5053 GB, free: 9.984 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.415e-06/0.2093, allocations: 0 / 0.5053 GB, free: 9.984 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009651/0.2103, allocations: 147.9 kB / 0.5054 GB, free: 9.84 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.004516/0.2148, allocations: 2.471 MB / 0.5079 GB, free: 7.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005272/0.2202, allocations: 1.206 MB / 0.509 GB, free: 6.039 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.2202, allocations: 0 / 0.509 GB, free: 6.039 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003902/0.2241, allocations: 0.8843 MB / 0.5099 GB, free: 5.129 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.2252, allocations: 125.5 kB / 0.51 GB, free: 5.008 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3074/0.5327, allocations: 6.096 MB / 0.516 GB, free: 51.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006927/0.5334, allocations: 0.956 MB / 0.5169 GB, free: 50.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006362/0.5341, allocations: 198.1 kB / 0.5171 GB, free: 50.98 MB / 362.7 MB Notification: Performance of SimCode: time 1.292e-06/0.5341, allocations: 1.062 kB / 0.5171 GB, free: 50.98 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.884/3.418, allocations: 18.99 MB / 0.5356 GB, free: 43.69 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)