Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.001263/0.001263, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.662/1.662, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0009183/0.0009185, allocations: 90.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1637/0.1637, allocations: 37.99 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.622e-05/3.632e-05, allocations: 4 kB / 417.8 MB, free: 29.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1263, allocations: 56.32 MB / 474.2 MB, free: 4.699 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5143/0.6407, allocations: 94.12 MB / 0.555 GB, free: 8.434 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.641, allocations: 92.3 kB / 0.555 GB, free: 8.387 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01468/0.6557, allocations: 6.155 MB / 0.561 GB, free: 3.105 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.011e-06/0.6557, allocations: 0 / 0.561 GB, free: 3.105 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.421e-05/0.6558, allocations: 4 kB / 0.5611 GB, free: 3.102 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000551/0.6563, allocations: 0.494 MB / 0.5615 GB, free: 2.574 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.6564, allocations: 12.03 kB / 0.5615 GB, free: 2.562 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.422e-05/0.6564, allocations: 60.47 kB / 0.5616 GB, free: 2.508 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.616e-05/0.6565, allocations: 39.92 kB / 0.5616 GB, free: 2.469 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001539/0.6581, allocations: 0.7569 MB / 0.5624 GB, free: 1.785 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.6581, allocations: 11.81 kB / 0.5624 GB, free: 1.773 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.391e-05/0.6581, allocations: 19.31 kB / 0.5624 GB, free: 1.762 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003264/0.6585, allocations: 258.6 kB / 0.5627 GB, free: 1.547 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.6585, allocations: 4 kB / 0.5627 GB, free: 1.543 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.209e-05/0.6585, allocations: 10.12 kB / 0.5627 GB, free: 1.539 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.6585, allocations: 4 kB / 0.5627 GB, free: 1.535 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000225/0.6588, allocations: 159.1 kB / 0.5628 GB, free: 1.422 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009868/0.6597, allocations: 1.181 MB / 0.564 GB, free: 272 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001211/0.6599, allocations: 76.5 kB / 0.5641 GB, free: 188 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.1e-05/0.6599, allocations: 32.78 kB / 0.5641 GB, free: 156 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/0.66, allocations: 3.938 kB / 0.5641 GB, free: 152 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.66, allocations: 38.59 kB / 0.5641 GB, free: 104 kB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.66, allocations: 0 / 0.5641 GB, free: 104 kB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006666/0.6607, allocations: 393.1 kB / 0.5645 GB, free: 15.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.6607, allocations: 81.14 kB / 0.5646 GB, free: 15.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.661, allocations: 218.5 kB / 0.5648 GB, free: 15.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.661, allocations: 29.7 kB / 0.5648 GB, free: 15.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.6611, allocations: 188.7 kB / 0.565 GB, free: 15.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.6611, allocations: 26.78 kB / 0.565 GB, free: 15.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-06/0.6611, allocations: 3.812 kB / 0.565 GB, free: 15.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.6613, allocations: 333.4 kB / 0.5653 GB, free: 14.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.949e-05/0.6613, allocations: 27.44 kB / 0.5654 GB, free: 14.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/0.6614, allocations: 121.7 kB / 0.5655 GB, free: 14.69 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.045e-05/0.6615, allocations: 53.05 kB / 0.5655 GB, free: 14.65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.6615, allocations: 0 / 0.5655 GB, free: 14.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002446/0.6618, allocations: 181.4 kB / 0.5657 GB, free: 14.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.6618, allocations: 4 kB / 0.5657 GB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.6618, allocations: 4.438 kB / 0.5657 GB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.6618, allocations: 8 kB / 0.5657 GB, free: 14.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.662, allocations: 42.92 kB / 0.5658 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.662, allocations: 8 kB / 0.5658 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.563e-05/0.6621, allocations: 11.19 kB / 0.5658 GB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.6621, allocations: 11.98 kB / 0.5658 GB, free: 14.41 MB / 378.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 (22): * Single equations (assignments): 22 * 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 7.952e-05/0.6622, allocations: 123.7 kB / 0.5659 GB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.939e-05/0.6623, allocations: 19.72 kB / 0.5659 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001634/0.6624, allocations: 94.33 kB / 0.566 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.6625, allocations: 4 kB / 0.566 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.6625, allocations: 0 / 0.566 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.6625, allocations: 0 / 0.566 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004395/0.6629, allocations: 425.3 kB / 0.5664 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.6629, allocations: 0 / 0.5664 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.632e-05/0.663, allocations: 16 kB / 0.5664 GB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.6631, allocations: 3.984 kB / 0.5664 GB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.218e-06/0.6631, allocations: 0 / 0.5664 GB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.6631, allocations: 4 kB / 0.5665 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.6631, allocations: 8.016 kB / 0.5665 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002933/0.6634, allocations: 255.4 kB / 0.5667 GB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.08e-05/0.6635, allocations: 96.94 kB / 0.5668 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.088e-05/0.6635, allocations: 4.016 kB / 0.5668 GB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.19e-05/0.6636, allocations: 7.312 kB / 0.5668 GB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.908e-05/0.6636, allocations: 7.938 kB / 0.5668 GB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-06/0.6636, allocations: 4 kB / 0.5668 GB, free: 13.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001886/0.6638, allocations: 168.3 kB / 0.567 GB, free: 13.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6639, allocations: 4 kB / 0.567 GB, free: 13.19 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002877/0.6641, allocations: 38.62 kB / 0.567 GB, free: 13.16 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * 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.0005968/0.6647, allocations: 0.9202 MB / 0.5679 GB, free: 12.22 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001608/0.6649, allocations: 88.5 kB / 0.568 GB, free: 12.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.6649, allocations: 0 / 0.568 GB, free: 12.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.823e-05/0.665, allocations: 30.23 kB / 0.568 GB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/0.6654, allocations: 49.86 kB / 0.5681 GB, free: 12.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000886/0.6663, allocations: 402 kB / 0.5685 GB, free: 11.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004023/0.6667, allocations: 0.7636 MB / 0.5692 GB, free: 10.89 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.768e-05/0.6668, allocations: 22.06 kB / 0.5692 GB, free: 10.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.511e-05/0.6669, allocations: 78.84 kB / 0.5693 GB, free: 10.84 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.6669, allocations: 192 / 0.5693 GB, free: 10.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3457/1.013, allocations: 3.788 MB / 0.573 GB, free: 7.105 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002893/1.013, allocations: 157.1 kB / 0.5732 GB, free: 6.883 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.906/2.918, allocations: 0 / 0.5732 GB, free: 6.883 MB / 378.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat does not exist to compare? outputFormat=mat