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.001213/0.001213, 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.837/1.837, allocations: 205.3 MB / 214.1 MB, free: 14.16 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.0008957/0.0008956, allocations: 88.88 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2076/0.2076, allocations: 38 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.831e-05/1.833e-05, allocations: 8 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 56.31 MB / 467 MB, free: 6.48 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4414/0.5473, allocations: 101 MB / 0.5546 GB, free: 9.797 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.5476, allocations: 91.94 kB / 0.5547 GB, free: 9.707 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04482/0.5924, allocations: 15.62 MB / 0.57 GB, free: 9.953 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.5925, allocations: 0 / 0.57 GB, free: 9.953 MB / 411.1 MB Notification: Performance of Transformations before backend: time 2.876e-05/0.5925, allocations: 12 kB / 0.57 GB, free: 9.941 MB / 411.1 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.001498/0.594, allocations: 0.7824 MB / 0.5708 GB, free: 9.105 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.5941, allocations: 8.031 kB / 0.5708 GB, free: 9.098 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005005/0.5946, allocations: 87.3 kB / 0.5708 GB, free: 9.012 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001587/0.5962, allocations: 0.6973 MB / 0.5715 GB, free: 8.273 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.143e-05/0.5963, allocations: 19.98 kB / 0.5715 GB, free: 8.254 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.962e-05/0.5963, allocations: 24 kB / 0.5716 GB, free: 8.23 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009556/0.5973, allocations: 0.5994 MB / 0.5722 GB, free: 7.633 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.5984, allocations: 0.7861 MB / 0.5729 GB, free: 6.809 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.431e-05/0.5985, allocations: 7.891 kB / 0.5729 GB, free: 6.801 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.054e-05/0.5985, allocations: 4.75 kB / 0.5729 GB, free: 6.797 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001484/0.5987, allocations: 56.73 kB / 0.573 GB, free: 6.738 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003882/0.6026, allocations: 2.644 MB / 0.5756 GB, free: 3.973 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008202/0.6034, allocations: 0.5955 MB / 0.5762 GB, free: 3.359 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000549/0.604, allocations: 491 kB / 0.5766 GB, free: 2.871 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.46e-05/0.604, allocations: 11.97 kB / 0.5766 GB, free: 2.859 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.311e-05/0.6041, allocations: 42.5 kB / 0.5767 GB, free: 2.809 MB / 411.1 MB Notification: Performance of pre-optimization done (n=60): time 3.126e-06/0.6041, allocations: 0 / 0.5767 GB, free: 2.809 MB / 411.1 MB Notification: Performance of matching and sorting (n=61): time 0.003256/0.6074, allocations: 1.68 MB / 0.5783 GB, free: 1.113 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.6075, allocations: 138.8 kB / 0.5784 GB, free: 0.9531 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002688/0.6078, allocations: 233.1 kB / 0.5787 GB, free: 0.7188 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 4.343e-05/0.6078, allocations: 33.73 kB / 0.5787 GB, free: 0.6797 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001681/0.608, allocations: 244.5 kB / 0.5789 GB, free: 444 kB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002089/0.6082, allocations: 200.9 kB / 0.5791 GB, free: 240 kB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.017e-05/0.6083, allocations: 0 / 0.5791 GB, free: 240 kB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.6084, allocations: 354.8 kB / 0.5795 GB, free: 15.88 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005017/0.609, allocations: 365 kB / 0.5798 GB, free: 15.52 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005741/0.6095, allocations: 494.6 kB / 0.5803 GB, free: 14.99 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/0.6106, allocations: 0.555 MB / 0.5808 GB, free: 14.44 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.6107, allocations: 3.984 kB / 0.5808 GB, free: 14.43 MB / 427.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00192/0.6126, allocations: 1.075 MB / 0.5819 GB, free: 13.35 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.307e-05/0.6127, allocations: 77.61 kB / 0.582 GB, free: 13.27 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.6127, allocations: 4 kB / 0.582 GB, free: 13.27 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002019/0.6129, allocations: 41.31 kB / 0.582 GB, free: 13.22 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/0.6133, allocations: 83.88 kB / 0.5821 GB, free: 13.14 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/0.6146, allocations: 1.374 MB / 0.5834 GB, free: 11.65 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003908/0.615, allocations: 31.95 kB / 0.5835 GB, free: 11.62 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.966e-05/0.615, allocations: 23.98 kB / 0.5835 GB, free: 11.59 MB / 427.1 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.0002353/0.6153, allocations: 190.5 kB / 0.5837 GB, free: 11.39 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001963/0.6173, allocations: 1.117 MB / 0.5847 GB, free: 10.27 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.55e-05/0.6174, allocations: 43.52 kB / 0.5848 GB, free: 10.23 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002222/0.6196, allocations: 1.146 MB / 0.5859 GB, free: 9.066 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.139e-05/0.6197, allocations: 23.94 kB / 0.5859 GB, free: 9.043 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.6197, allocations: 0 / 0.5859 GB, free: 9.043 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.6197, allocations: 4.125 kB / 0.5859 GB, free: 9.039 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003304/0.6231, allocations: 1.787 MB / 0.5877 GB, free: 7.203 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.6231, allocations: 0 / 0.5877 GB, free: 7.203 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003232/0.6234, allocations: 63.89 kB / 0.5877 GB, free: 7.141 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000144/0.6236, allocations: 40.89 kB / 0.5878 GB, free: 7.098 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.392e-05/0.6236, allocations: 8 kB / 0.5878 GB, free: 7.09 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001222/0.6249, allocations: 1.374 MB / 0.5891 GB, free: 5.602 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.6249, allocations: 0 / 0.5891 GB, free: 5.602 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002185/0.6271, allocations: 1.276 MB / 0.5904 GB, free: 4.277 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002956/0.6274, allocations: 184.6 kB / 0.5905 GB, free: 4.078 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.27e-05/0.6275, allocations: 15.92 kB / 0.5906 GB, free: 4.062 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002838/0.6277, allocations: 27.95 kB / 0.5906 GB, free: 4.035 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.6279, allocations: 43.95 kB / 0.5906 GB, free: 3.992 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.219e-05/0.628, allocations: 19.98 kB / 0.5907 GB, free: 3.973 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0002198/0.6282, allocations: 176.6 kB / 0.5908 GB, free: 3.801 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6282, allocations: 0 / 0.5908 GB, free: 3.801 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0007043/0.6289, allocations: 159.9 kB / 0.591 GB, free: 3.645 MB / 427.1 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.00257/0.6315, allocations: 2.071 MB / 0.593 GB, free: 1.523 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001985/0.6335, allocations: 1.416 MB / 0.5944 GB, free: 84 kB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.6335, allocations: 4.125 kB / 0.5944 GB, free: 80 kB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.6346, allocations: 0.9506 MB / 0.5953 GB, free: 15.1 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005939/0.6353, allocations: 56.69 kB / 0.5954 GB, free: 15.04 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002544/0.6378, allocations: 1.336 MB / 0.5967 GB, free: 13.66 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006759/0.6385, allocations: 0.9142 MB / 0.5976 GB, free: 12.72 MB / 443.1 MB Notification: Performance of simCode: alias equations: time 0.0003564/0.6389, allocations: 115.2 kB / 0.5977 GB, free: 12.61 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000264/0.6391, allocations: 151.4 kB / 0.5978 GB, free: 12.46 MB / 443.1 MB Notification: Performance of SimCode: time 8.62e-07/0.6392, allocations: 0 / 0.5978 GB, free: 12.46 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03314/0.6723, allocations: 9.594 MB / 0.6072 GB, free: 2.875 MB / 443.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002247/0.6726, allocations: 139 kB / 0.6073 GB, free: 2.684 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.212/2.885, allocations: 7.938 kB / 0.6073 GB, free: 2.676 MB / 443.1 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