Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",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.001479/0.001479, 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.648/1.648, 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.0008868/0.0008867, allocations: 86.66 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.1714/0.1714, allocations: 37.98 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.352e-05/3.356e-05, allocations: 4 kB / 417.8 MB, free: 29.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1176, allocations: 56.32 MB / 474.2 MB, free: 4.695 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4329/0.5505, allocations: 94.36 MB / 0.5552 GB, free: 8.188 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.5508, allocations: 91.8 kB / 0.5553 GB, free: 8.141 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01649/0.5673, allocations: 6.667 MB / 0.5618 GB, free: 2.402 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.5674, allocations: 0 / 0.5618 GB, free: 2.402 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.854e-05/0.5674, allocations: 8 kB / 0.5618 GB, free: 2.395 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006757/0.5681, allocations: 0.5568 MB / 0.5623 GB, free: 1.812 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.5682, allocations: 8.031 kB / 0.5623 GB, free: 1.805 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.719e-05/0.5682, allocations: 56.48 kB / 0.5624 GB, free: 1.754 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.844e-05/0.5683, allocations: 39.92 kB / 0.5624 GB, free: 1.715 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.5695, allocations: 0.5907 MB / 0.563 GB, free: 1.168 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.5695, allocations: 15 kB / 0.563 GB, free: 1.156 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.867e-05/0.5696, allocations: 21.69 kB / 0.5631 GB, free: 1.141 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004056/0.57, allocations: 317.7 kB / 0.5634 GB, free: 0.875 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.57, allocations: 0 / 0.5634 GB, free: 0.875 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.678e-05/0.57, allocations: 10.38 kB / 0.5634 GB, free: 0.8711 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.5701, allocations: 4 kB / 0.5634 GB, free: 0.8672 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003177/0.5704, allocations: 216 kB / 0.5636 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001598/0.572, allocations: 1.36 MB / 0.5649 GB, free: 15.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003611/0.5724, allocations: 142.8 kB / 0.565 GB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.746e-05/0.5725, allocations: 54.45 kB / 0.5651 GB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.5725, allocations: 4 kB / 0.5651 GB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/0.5726, allocations: 37.56 kB / 0.5651 GB, free: 15.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 1.624e-06/0.5726, allocations: 0 / 0.5651 GB, free: 15.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008338/0.5734, allocations: 312.4 kB / 0.5654 GB, free: 14.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.498e-05/0.5735, allocations: 87.62 kB / 0.5655 GB, free: 14.81 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002622/0.5737, allocations: 229.6 kB / 0.5657 GB, free: 14.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.5738, allocations: 25.7 kB / 0.5658 GB, free: 14.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.5739, allocations: 208.1 kB / 0.566 GB, free: 14.42 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.267e-05/0.574, allocations: 49.92 kB / 0.566 GB, free: 14.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.835e-06/0.574, allocations: 0 / 0.566 GB, free: 14.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.5741, allocations: 335.2 kB / 0.5663 GB, free: 14.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.556e-05/0.5742, allocations: 48.92 kB / 0.5664 GB, free: 14.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.5744, allocations: 154.6 kB / 0.5665 GB, free: 13.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.5745, allocations: 76.08 kB / 0.5666 GB, free: 13.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.5745, allocations: 0 / 0.5666 GB, free: 13.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003458/0.5748, allocations: 248.1 kB / 0.5668 GB, free: 13.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.5749, allocations: 8 kB / 0.5668 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.5749, allocations: 0 / 0.5668 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.5749, allocations: 8 kB / 0.5668 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001875/0.5751, allocations: 51.78 kB / 0.5669 GB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.5751, allocations: 4 kB / 0.5669 GB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001327/0.5753, allocations: 16.39 kB / 0.5669 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.929e-05/0.5753, allocations: 11.88 kB / 0.5669 GB, free: 13.49 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 (25): * Single equations (assignments): 25 * 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.503e-05/0.5754, allocations: 120.7 kB / 0.567 GB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.491e-05/0.5754, allocations: 23.72 kB / 0.5671 GB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003484/0.5758, allocations: 199.8 kB / 0.5672 GB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.5758, allocations: 0 / 0.5672 GB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.5758, allocations: 0 / 0.5672 GB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.5758, allocations: 7.984 kB / 0.5673 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006957/0.5765, allocations: 0.5495 MB / 0.5678 GB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.5766, allocations: 3.984 kB / 0.5678 GB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.5767, allocations: 27.98 kB / 0.5678 GB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.5767, allocations: 0 / 0.5678 GB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.5767, allocations: 6.688 kB / 0.5678 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.5767, allocations: 0 / 0.5678 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.5767, allocations: 3.953 kB / 0.5678 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00035/0.5771, allocations: 320.2 kB / 0.5681 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.464e-05/0.5772, allocations: 104.8 kB / 0.5682 GB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.401e-05/0.5772, allocations: 6.578 kB / 0.5682 GB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.5774, allocations: 11 kB / 0.5683 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.364e-05/0.5774, allocations: 7.984 kB / 0.5683 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.5774, allocations: 11.12 kB / 0.5683 GB, free: 12.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001719/0.5776, allocations: 175.9 kB / 0.5684 GB, free: 12.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5776, allocations: 0 / 0.5684 GB, free: 12.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003314/0.578, allocations: 62.44 kB / 0.5685 GB, free: 11.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (17): * Single equations (assignments): 16 * 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.0008125/0.5788, allocations: 0.995 MB / 0.5695 GB, free: 10.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000307/0.5791, allocations: 155.4 kB / 0.5696 GB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.5791, allocations: 0.875 kB / 0.5696 GB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.5792, allocations: 70.66 kB / 0.5697 GB, free: 10.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/0.5796, allocations: 53.88 kB / 0.5697 GB, free: 10.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009622/0.5806, allocations: 418.2 kB / 0.5701 GB, free: 10.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.581, allocations: 0.7981 MB / 0.5709 GB, free: 9.531 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001578/0.5812, allocations: 38.06 kB / 0.571 GB, free: 9.492 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.5813, allocations: 92.45 kB / 0.571 GB, free: 9.457 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.5814, allocations: 0 / 0.571 GB, free: 9.457 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01648/0.5978, allocations: 4.681 MB / 0.5756 GB, free: 4.824 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001681/0.598, allocations: 157 kB / 0.5758 GB, free: 4.602 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.919/2.517, allocations: 0 / 0.5758 GB, free: 4.602 MB / 378.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat does not exist to compare? outputFormat=mat