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.001459/0.00146, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.672/1.672, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009277/0.0009277, allocations: 86.84 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2151/0.2151, allocations: 37.99 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.628e-05/1.63e-05, allocations: 0 / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1098, allocations: 56.33 MB / 467 MB, free: 6.457 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3949/0.5047, allocations: 93.45 MB / 0.5473 GB, free: 1.324 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.5049, allocations: 91.88 kB / 0.5474 GB, free: 1.234 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01626/0.5212, allocations: 6.097 MB / 0.5534 GB, free: 11.09 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.5213, allocations: 4 kB / 0.5534 GB, free: 11.08 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.5213, allocations: 4 kB / 0.5534 GB, free: 11.08 MB / 395.1 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.0005951/0.5219, allocations: 0.5033 MB / 0.5539 GB, free: 10.53 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.792e-05/0.5219, allocations: 8.031 kB / 0.5539 GB, free: 10.52 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.173e-05/0.522, allocations: 35.92 kB / 0.5539 GB, free: 10.48 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00168/0.5237, allocations: 0.7439 MB / 0.5546 GB, free: 9.699 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.5237, allocations: 8 kB / 0.5546 GB, free: 9.691 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.225e-05/0.5237, allocations: 16 kB / 0.5546 GB, free: 9.676 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002316/0.524, allocations: 132.8 kB / 0.5548 GB, free: 9.543 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00031/0.5243, allocations: 237.2 kB / 0.555 GB, free: 9.285 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.5243, allocations: 3.938 kB / 0.555 GB, free: 9.281 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.5243, allocations: 4 kB / 0.555 GB, free: 9.277 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.5243, allocations: 8 kB / 0.555 GB, free: 9.27 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001126/0.5255, allocations: 1.119 MB / 0.5561 GB, free: 8.074 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001065/0.5256, allocations: 73.25 kB / 0.5562 GB, free: 7.984 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.644e-05/0.5257, allocations: 25.78 kB / 0.5562 GB, free: 7.953 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.676e-05/0.5257, allocations: 4.734 kB / 0.5562 GB, free: 7.949 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.5257, allocations: 38.59 kB / 0.5562 GB, free: 7.902 MB / 395.1 MB Notification: Performance of pre-optimization done (n=7): time 1.402e-06/0.5257, allocations: 3.938 kB / 0.5562 GB, free: 7.898 MB / 395.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006094/0.5263, allocations: 380.7 kB / 0.5566 GB, free: 7.473 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.5264, allocations: 81.05 kB / 0.5567 GB, free: 7.375 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001851/0.5266, allocations: 192.5 kB / 0.5569 GB, free: 7.184 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.5266, allocations: 25.7 kB / 0.5569 GB, free: 7.152 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001665/0.5268, allocations: 195.6 kB / 0.5571 GB, free: 6.953 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.437e-05/0.5268, allocations: 31.58 kB / 0.5571 GB, free: 6.922 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-06/0.5268, allocations: 0 / 0.5571 GB, free: 6.922 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.527, allocations: 330.8 kB / 0.5574 GB, free: 6.59 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.333e-05/0.5271, allocations: 24.38 kB / 0.5575 GB, free: 6.566 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.5272, allocations: 113.4 kB / 0.5576 GB, free: 6.41 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.312e-05/0.5272, allocations: 47.98 kB / 0.5576 GB, free: 6.363 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.5273, allocations: 0 / 0.5576 GB, free: 6.363 MB / 395.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000224/0.5275, allocations: 157.6 kB / 0.5578 GB, free: 6.203 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.5275, allocations: 4 kB / 0.5578 GB, free: 6.199 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.5275, allocations: 4 kB / 0.5578 GB, free: 6.195 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.5276, allocations: 8 kB / 0.5578 GB, free: 6.188 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.5277, allocations: 43.92 kB / 0.5578 GB, free: 6.145 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.647e-06/0.5277, allocations: 4 kB / 0.5578 GB, free: 6.141 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.317e-05/0.5278, allocations: 11.97 kB / 0.5578 GB, free: 6.129 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.5278, allocations: 12 kB / 0.5578 GB, free: 6.117 MB / 395.1 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 9.088e-05/0.5279, allocations: 117 kB / 0.558 GB, free: 5.996 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001308/0.5281, allocations: 89.42 kB / 0.558 GB, free: 5.902 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.995e-05/0.5281, allocations: 19.72 kB / 0.5581 GB, free: 5.883 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001441/0.5283, allocations: 83.52 kB / 0.5581 GB, free: 5.797 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.5283, allocations: 0 / 0.5581 GB, free: 5.797 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.5283, allocations: 3.984 kB / 0.5581 GB, free: 5.793 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.5283, allocations: 4 kB / 0.5581 GB, free: 5.789 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003953/0.5287, allocations: 375.9 kB / 0.5585 GB, free: 5.375 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.5287, allocations: 4 kB / 0.5585 GB, free: 5.371 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.048e-05/0.5288, allocations: 12 kB / 0.5585 GB, free: 5.359 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.5288, allocations: 0 / 0.5585 GB, free: 5.359 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.5289, allocations: 15.92 kB / 0.5585 GB, free: 5.344 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.5289, allocations: 0 / 0.5585 GB, free: 5.344 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.5289, allocations: 0 / 0.5585 GB, free: 5.344 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002435/0.5291, allocations: 240.3 kB / 0.5588 GB, free: 5.074 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.977e-05/0.5292, allocations: 96.88 kB / 0.5589 GB, free: 4.961 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.923e-05/0.5292, allocations: 4 kB / 0.5589 GB, free: 4.957 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.392e-05/0.5293, allocations: 7.953 kB / 0.5589 GB, free: 4.949 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.958e-05/0.5293, allocations: 4 kB / 0.5589 GB, free: 4.945 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.5294, allocations: 4.094 kB / 0.5589 GB, free: 4.941 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.000127/0.5295, allocations: 152.5 kB / 0.559 GB, free: 4.789 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5295, allocations: 0 / 0.559 GB, free: 4.789 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0002862/0.5298, allocations: 39.98 kB / 0.5591 GB, free: 4.75 MB / 395.1 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.0005519/0.5303, allocations: 0.9152 MB / 0.5599 GB, free: 3.797 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001444/0.5305, allocations: 71.81 kB / 0.56 GB, free: 3.727 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.5305, allocations: 0 / 0.56 GB, free: 3.727 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 4.283e-05/0.5306, allocations: 27.94 kB / 0.56 GB, free: 3.699 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003854/0.531, allocations: 53.53 kB / 0.5601 GB, free: 3.648 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008177/0.5318, allocations: 388.4 kB / 0.5605 GB, free: 3.223 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.5321, allocations: 0.7633 MB / 0.5612 GB, free: 2.434 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.000108/0.5322, allocations: 30.05 kB / 0.5612 GB, free: 2.406 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.506e-05/0.5323, allocations: 67.42 kB / 0.5613 GB, free: 2.34 MB / 395.1 MB Notification: Performance of SimCode: time 2.71e-07/0.5324, allocations: 4 kB / 0.5613 GB, free: 2.336 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02386/0.5562, allocations: 3.332 MB / 0.5646 GB, free: 15.01 MB / 411.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002009/0.5565, allocations: 141.7 kB / 0.5647 GB, free: 14.82 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/2.229, allocations: 0 / 0.5647 GB, free: 14.82 MB / 411.1 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