Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.Elementary.LoadAC,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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.002196/0.002203, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.214/2.214, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00112/0.00112, allocations: 86.64 kB / 261.8 MB, free: 1.691 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2608/0.2608, allocations: 37.99 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.889e-05/1.889e-05, allocations: 4 kB / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4903/0.6015, allocations: 95.61 MB / 0.5487 GB, free: 10.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.6019, allocations: 92.59 kB / 0.5488 GB, free: 10.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03223/0.6341, allocations: 7.616 MB / 0.5562 GB, free: 7.129 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.6342, allocations: 0 / 0.5562 GB, free: 7.129 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.103e-05/0.6342, allocations: 7.656 kB / 0.5562 GB, free: 7.129 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001183/0.6354, allocations: 0.5921 MB / 0.5568 GB, free: 6.637 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.6355, allocations: 11.56 kB / 0.5568 GB, free: 6.637 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.6356, allocations: 42.92 kB / 0.5569 GB, free: 6.613 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002505/0.6381, allocations: 0.7145 MB / 0.5576 GB, free: 6.211 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.844e-05/0.6382, allocations: 15.53 kB / 0.5576 GB, free: 6.207 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.886e-05/0.6382, allocations: 11.38 kB / 0.5576 GB, free: 6.207 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005781/0.6388, allocations: 228.1 kB / 0.5578 GB, free: 6.172 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006033/0.6394, allocations: 320.3 kB / 0.5581 GB, free: 6.012 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.6395, allocations: 0 / 0.5581 GB, free: 6.012 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.522e-05/0.6395, allocations: 4.75 kB / 0.5581 GB, free: 6.008 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.6395, allocations: 11.64 kB / 0.5581 GB, free: 6.004 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002133/0.6417, allocations: 1.385 MB / 0.5595 GB, free: 4.891 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003152/0.642, allocations: 151.3 kB / 0.5596 GB, free: 4.762 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.6422, allocations: 75.69 kB / 0.5597 GB, free: 4.699 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.018e-05/0.6422, allocations: 3.438 kB / 0.5597 GB, free: 4.699 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.6423, allocations: 34.56 kB / 0.5597 GB, free: 4.656 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 2.906e-06/0.6423, allocations: 0 / 0.5597 GB, free: 4.656 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.001237/0.6435, allocations: 0.5896 MB / 0.5603 GB, free: 4.078 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.073e-05/0.6436, allocations: 81.14 kB / 0.5604 GB, free: 3.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003374/0.644, allocations: 252.3 kB / 0.5606 GB, free: 3.766 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.644, allocations: 25.7 kB / 0.5607 GB, free: 3.734 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.6441, allocations: 262.5 kB / 0.5609 GB, free: 3.512 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.017e-05/0.6442, allocations: 58 kB / 0.561 GB, free: 3.461 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.379e-05/0.6442, allocations: 0 / 0.561 GB, free: 3.461 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.158e-05/0.6443, allocations: 318.3 kB / 0.5613 GB, free: 3.145 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001414/0.6444, allocations: 62.53 kB / 0.5613 GB, free: 3.102 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.6446, allocations: 163.5 kB / 0.5615 GB, free: 2.922 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.6448, allocations: 84.81 kB / 0.5616 GB, free: 2.859 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.6448, allocations: 0 / 0.5616 GB, free: 2.859 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005072/0.6454, allocations: 242.8 kB / 0.5618 GB, free: 2.656 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.6454, allocations: 8 kB / 0.5618 GB, free: 2.648 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.6454, allocations: 0 / 0.5618 GB, free: 2.648 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.6454, allocations: 8 kB / 0.5618 GB, free: 2.641 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000449/0.6459, allocations: 56.34 kB / 0.5619 GB, free: 2.586 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.6459, allocations: 15.94 kB / 0.5619 GB, free: 2.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.6463, allocations: 4 kB / 0.5619 GB, free: 2.566 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.61e-05/0.6463, allocations: 19.73 kB / 0.5619 GB, free: 2.551 MB / 362.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.903e-05/0.6464, allocations: 112.9 kB / 0.562 GB, free: 2.434 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004033/0.6468, allocations: 185.4 kB / 0.5622 GB, free: 2.277 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.021e-05/0.6469, allocations: 23.72 kB / 0.5622 GB, free: 2.254 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005113/0.6474, allocations: 221.1 kB / 0.5624 GB, free: 2.082 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.6474, allocations: 8.031 kB / 0.5624 GB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.6474, allocations: 3.953 kB / 0.5624 GB, free: 2.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.6475, allocations: 3.938 kB / 0.5624 GB, free: 2.066 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009474/0.6484, allocations: 0.5586 MB / 0.563 GB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.6484, allocations: 0 / 0.563 GB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003746/0.6488, allocations: 42.86 kB / 0.563 GB, free: 1.516 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.686e-06/0.6488, allocations: 4 kB / 0.563 GB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.6489, allocations: 0 / 0.563 GB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.393e-06/0.6489, allocations: 15.98 kB / 0.563 GB, free: 1.496 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.6489, allocations: 0 / 0.563 GB, free: 1.496 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000647/0.6496, allocations: 426.1 kB / 0.5635 GB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.6497, allocations: 108.2 kB / 0.5636 GB, free: 0.9961 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.686e-05/0.6498, allocations: 12.05 kB / 0.5636 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002673/0.65, allocations: 4 kB / 0.5636 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.599e-05/0.6501, allocations: 11.97 kB / 0.5636 GB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/0.6501, allocations: 7.75 kB / 0.5636 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002395/0.6504, allocations: 198.9 kB / 0.5638 GB, free: 0.8047 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6504, allocations: 0 / 0.5638 GB, free: 0.8047 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005134/0.6509, allocations: 59.94 kB / 0.5638 GB, free: 0.7461 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00101/0.6519, allocations: 1.101 MB / 0.5649 GB, free: 15.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004777/0.6524, allocations: 177.3 kB / 0.5651 GB, free: 15.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.6524, allocations: 8.125 kB / 0.5651 GB, free: 15.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001971/0.6526, allocations: 85.84 kB / 0.5652 GB, free: 15.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000659/0.6533, allocations: 51.56 kB / 0.5652 GB, free: 15.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001658/0.655, allocations: 0.5725 MB / 0.5658 GB, free: 14.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005001/0.6555, allocations: 0.8132 MB / 0.5666 GB, free: 14.03 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002581/0.6558, allocations: 111.3 kB / 0.5667 GB, free: 14 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.6558, allocations: 0 / 0.5667 GB, free: 14 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.668/3.324, allocations: 5.216 MB / 0.5718 GB, free: 8.836 MB / 378.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1)