Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_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.001205/0.001205, 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.411/1.411, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.0007773/0.0007774, allocations: 82.69 kB / 267.5 MB, free: 14.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1626/0.1626, allocations: 37.98 MB / 353.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.726e-05/3.73e-05, allocations: 0 / 417.8 MB, free: 29.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1173, allocations: 56.32 MB / 474.1 MB, free: 4.703 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5704/0.6877, allocations: 101.6 MB / 0.5623 GB, free: 1.156 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003637/0.6881, allocations: 89.81 kB / 0.5624 GB, free: 1.113 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06424/0.7524, allocations: 15.74 MB / 0.5777 GB, free: 3.578 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.7524, allocations: 0 / 0.5777 GB, free: 3.578 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.063e-05/0.7525, allocations: 15.69 kB / 0.5778 GB, free: 3.566 MB / 378.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.001994/0.7545, allocations: 0.7803 MB / 0.5785 GB, free: 2.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.45e-05/0.7546, allocations: 8.031 kB / 0.5785 GB, free: 2.762 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00017/0.7548, allocations: 101.6 kB / 0.5786 GB, free: 2.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007276/0.7555, allocations: 83.3 kB / 0.5787 GB, free: 2.598 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002252/0.7578, allocations: 0.6981 MB / 0.5794 GB, free: 1.965 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.352e-05/0.7578, allocations: 28.34 kB / 0.5794 GB, free: 1.945 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/0.758, allocations: 43.36 kB / 0.5794 GB, free: 1.914 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00177/0.7598, allocations: 0.8402 MB / 0.5803 GB, free: 1.254 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.487e-05/0.7598, allocations: 0 / 0.5803 GB, free: 1.254 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.424e-05/0.7599, allocations: 27.39 kB / 0.5803 GB, free: 1.238 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002183/0.7601, allocations: 52.48 kB / 0.5803 GB, free: 1.191 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/0.7618, allocations: 0.7512 MB / 0.5811 GB, free: 0.6562 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005225/0.767, allocations: 2.645 MB / 0.5837 GB, free: 14.25 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.7684, allocations: 0.5882 MB / 0.5842 GB, free: 13.84 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008171/0.7692, allocations: 475.4 kB / 0.5847 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.089e-05/0.7693, allocations: 4 kB / 0.5847 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.344e-05/0.7693, allocations: 37.67 kB / 0.5847 GB, free: 13.51 MB / 394.7 MB Notification: Performance of pre-optimization done (n=60): time 5.601e-06/0.7693, allocations: 0 / 0.5847 GB, free: 13.51 MB / 394.7 MB Notification: Performance of matching and sorting (n=61): time 0.003558/0.7729, allocations: 1.498 MB / 0.5862 GB, free: 12.31 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.7731, allocations: 143.3 kB / 0.5863 GB, free: 12.15 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004137/0.7735, allocations: 244.4 kB / 0.5866 GB, free: 11.94 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.844e-05/0.7736, allocations: 32.52 kB / 0.5866 GB, free: 11.91 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002142/0.7738, allocations: 244.6 kB / 0.5868 GB, free: 11.71 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002467/0.774, allocations: 204.4 kB / 0.587 GB, free: 11.53 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.299e-05/0.7741, allocations: 10.25 kB / 0.587 GB, free: 11.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002098/0.7743, allocations: 350.3 kB / 0.5874 GB, free: 11.19 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007145/0.775, allocations: 358.5 kB / 0.5877 GB, free: 10.94 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008542/0.7759, allocations: 487.7 kB / 0.5882 GB, free: 10.53 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009223/0.7769, allocations: 481.8 kB / 0.5886 GB, free: 10.17 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.7769, allocations: 0 / 0.5886 GB, free: 10.17 MB / 394.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002194/0.7791, allocations: 0.995 MB / 0.5896 GB, free: 9.383 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001327/0.7792, allocations: 75.09 kB / 0.5897 GB, free: 9.312 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/0.7793, allocations: 4 kB / 0.5897 GB, free: 9.309 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002712/0.7795, allocations: 43.41 kB / 0.5897 GB, free: 9.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005617/0.7801, allocations: 83.31 kB / 0.5898 GB, free: 9.191 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001826/0.782, allocations: 1.446 MB / 0.5912 GB, free: 7.699 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005316/0.7825, allocations: 38.39 kB / 0.5912 GB, free: 7.668 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.465e-05/0.7826, allocations: 27.11 kB / 0.5913 GB, free: 7.645 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3],system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 38 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003134/0.7829, allocations: 199.3 kB / 0.5915 GB, free: 7.453 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/0.7831, allocations: 43.47 kB / 0.5915 GB, free: 7.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002386/0.7855, allocations: 1.114 MB / 0.5926 GB, free: 6.578 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-05/0.7856, allocations: 15.98 kB / 0.5926 GB, free: 6.562 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.7856, allocations: 4 kB / 0.5926 GB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/0.7856, allocations: 0 / 0.5926 GB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003834/0.7894, allocations: 1.822 MB / 0.5944 GB, free: 5.078 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.7895, allocations: 0 / 0.5944 GB, free: 5.078 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004447/0.7899, allocations: 67.33 kB / 0.5945 GB, free: 5.016 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001732/0.7901, allocations: 32.2 kB / 0.5945 GB, free: 4.984 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.434e-05/0.7902, allocations: 14.88 kB / 0.5945 GB, free: 4.977 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001699/0.7919, allocations: 1.432 MB / 0.5959 GB, free: 3.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.7919, allocations: 0 / 0.5959 GB, free: 3.5 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002484/0.7944, allocations: 1.254 MB / 0.5971 GB, free: 2.473 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004423/0.7949, allocations: 184.4 kB / 0.5973 GB, free: 2.289 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.951e-05/0.795, allocations: 13.88 kB / 0.5973 GB, free: 2.281 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004418/0.7954, allocations: 30.58 kB / 0.5973 GB, free: 2.254 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.7956, allocations: 42.2 kB / 0.5974 GB, free: 2.219 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.971e-05/0.7957, allocations: 19.3 kB / 0.5974 GB, free: 2.203 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003453/0.7961, allocations: 191.9 kB / 0.5976 GB, free: 2.047 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7961, allocations: 0 / 0.5976 GB, free: 2.047 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001037/0.7972, allocations: 164.2 kB / 0.5977 GB, free: 1.898 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3]) * Number of discrete states: 3 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003184/0.8004, allocations: 2.058 MB / 0.5998 GB, free: 68 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002665/0.803, allocations: 1.397 MB / 0.6011 GB, free: 15.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.8031, allocations: 0 / 0.6011 GB, free: 15.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001539/0.8046, allocations: 0.9525 MB / 0.602 GB, free: 14.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006837/0.8053, allocations: 64.23 kB / 0.6021 GB, free: 14.39 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003533/0.8089, allocations: 1.351 MB / 0.6034 GB, free: 13.22 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007995/0.8097, allocations: 0.9117 MB / 0.6043 GB, free: 12.3 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004955/0.8102, allocations: 107.2 kB / 0.6044 GB, free: 12.19 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003233/0.8105, allocations: 158.1 kB / 0.6046 GB, free: 12.15 MB / 410.7 MB Notification: Performance of SimCode: time 1.724e-06/0.8105, allocations: 0 / 0.6046 GB, free: 12.15 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.247/3.058, allocations: 9.967 MB / 0.6143 GB, free: 2.234 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/3.058, allocations: 180 kB / 0.6145 GB, free: 2.004 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.051/5.109, allocations: 0 / 0.6145 GB, free: 2.004 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.mat does not exist to compare? outputFormat=mat