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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001147/0.001147, allocations: 180.7 kB / 8.134 MB, free: 2.184 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.393/1.393, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0009044/0.0009046, allocations: 92.41 kB / 261.8 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.172/0.172, allocations: 37.98 MB / 347.7 MB, free: 7.461 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.204/0.3761, allocations: 62.44 MB / 410.1 MB, free: 46.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09393/0.47, allocations: 56.32 MB / 466.4 MB, free: 6.363 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3111/0.7812, allocations: 100.9 MB / 0.5541 GB, free: 9.527 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/0.7815, allocations: 87.94 kB / 0.5541 GB, free: 9.441 MB / 394.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.04622/0.8277, allocations: 16.05 MB / 0.5698 GB, free: 9.184 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.979e-05/0.8277, allocations: 8 kB / 0.5698 GB, free: 9.176 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005731/0.8283, allocations: 95.19 kB / 0.5699 GB, free: 9.082 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001735/0.8301, allocations: 0.7048 MB / 0.5706 GB, free: 8.336 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.291e-05/0.8301, allocations: 12 kB / 0.5706 GB, free: 8.324 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.926e-05/0.8302, allocations: 24 kB / 0.5706 GB, free: 8.301 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009488/0.8312, allocations: 0.6229 MB / 0.5712 GB, free: 7.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.8323, allocations: 0.794 MB / 0.572 GB, free: 6.844 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/0.8323, allocations: 11.88 kB / 0.572 GB, free: 6.832 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.032e-05/0.8324, allocations: 0 / 0.572 GB, free: 6.832 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001382/0.8325, allocations: 56.75 kB / 0.5721 GB, free: 6.777 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00391/0.8365, allocations: 2.628 MB / 0.5747 GB, free: 4.027 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008818/0.8374, allocations: 0.6009 MB / 0.5752 GB, free: 3.41 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000604/0.838, allocations: 0.4911 MB / 0.5757 GB, free: 2.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.486e-05/0.838, allocations: 7.984 kB / 0.5757 GB, free: 2.902 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.8381, allocations: 42.56 kB / 0.5758 GB, free: 2.852 MB / 410.7 MB Notification: Performance of pre-optimization done (n=60): time 3.406e-06/0.8381, allocations: 0 / 0.5758 GB, free: 2.852 MB / 410.7 MB Notification: Performance of matching and sorting (n=61): time 0.003184/0.8413, allocations: 1.678 MB / 0.5774 GB, free: 1.156 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.364e-05/0.8414, allocations: 138.8 kB / 0.5775 GB, free: 0.9961 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.8416, allocations: 243.4 kB / 0.5778 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.737e-05/0.8417, allocations: 25.7 kB / 0.5778 GB, free: 0.7266 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.912e-05/0.8418, allocations: 216.5 kB / 0.578 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.8419, allocations: 197 kB / 0.5782 GB, free: 320 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-05/0.842, allocations: 3.938 kB / 0.5782 GB, free: 316 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.8421, allocations: 354.7 kB / 0.5785 GB, free: 15.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004396/0.8426, allocations: 384.8 kB / 0.5789 GB, free: 15.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005303/0.8431, allocations: 0.4901 MB / 0.5794 GB, free: 15.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009961/0.8441, allocations: 0.55 MB / 0.5799 GB, free: 14.49 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.8441, allocations: 4 kB / 0.5799 GB, free: 14.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001799/0.8459, allocations: 1.109 MB / 0.581 GB, free: 13.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.846, allocations: 13.5 kB / 0.581 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.846, allocations: 4 kB / 0.581 GB, free: 13.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001752/0.8462, allocations: 40.75 kB / 0.5811 GB, free: 13.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003647/0.8465, allocations: 79.89 kB / 0.5811 GB, free: 13.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001114/0.8477, allocations: 1.365 MB / 0.5825 GB, free: 11.74 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003298/0.848, allocations: 20.02 kB / 0.5825 GB, free: 11.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.624e-05/0.8481, allocations: 23.98 kB / 0.5825 GB, free: 11.7 MB / 426.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.0002229/0.8483, allocations: 198.5 kB / 0.5827 GB, free: 11.49 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.206e-05/0.8484, allocations: 47.44 kB / 0.5827 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001976/0.8504, allocations: 1.175 MB / 0.5839 GB, free: 10.26 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.887e-05/0.8505, allocations: 15.91 kB / 0.5839 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.8505, allocations: 3.984 kB / 0.5839 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.8505, allocations: 4 kB / 0.5839 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00295/0.8534, allocations: 1.825 MB / 0.5857 GB, free: 8.359 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.8535, allocations: 0 / 0.5857 GB, free: 8.359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002976/0.8538, allocations: 51.91 kB / 0.5857 GB, free: 8.309 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001301/0.8539, allocations: 40.83 kB / 0.5858 GB, free: 8.266 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.862e-05/0.854, allocations: 8.062 kB / 0.5858 GB, free: 8.258 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001085/0.8551, allocations: 1.369 MB / 0.5871 GB, free: 6.77 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.8551, allocations: 4 kB / 0.5871 GB, free: 6.766 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001906/0.857, allocations: 1.31 MB / 0.5884 GB, free: 5.406 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002003/0.859, allocations: 1.7 MB / 0.5901 GB, free: 3.652 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003188/0.8593, allocations: 192.5 kB / 0.5903 GB, free: 3.441 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.417e-05/0.8594, allocations: 11.98 kB / 0.5903 GB, free: 3.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002968/0.8597, allocations: 15.98 kB / 0.5903 GB, free: 3.414 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.8599, allocations: 39.95 kB / 0.5903 GB, free: 3.375 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.241e-05/0.8599, allocations: 16 kB / 0.5903 GB, free: 3.359 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0001703/0.8601, allocations: 183.1 kB / 0.5905 GB, free: 3.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001212/0.8613, allocations: 144 kB / 0.5906 GB, free: 3.039 MB / 426.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.000302/0.8617, allocations: 151 kB / 0.5908 GB, free: 2.883 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001645/0.8633, allocations: 1.161 MB / 0.5919 GB, free: 1.711 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.8633, allocations: 0 / 0.5919 GB, free: 1.711 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001178/0.8645, allocations: 0.9646 MB / 0.5929 GB, free: 0.7266 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004285/0.8649, allocations: 56.45 kB / 0.5929 GB, free: 0.6719 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.8672, allocations: 1.216 MB / 0.5941 GB, free: 15.42 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007986/0.868, allocations: 0.9548 MB / 0.595 GB, free: 14.44 MB / 442.7 MB Notification: Performance of SimCode: time 4.31e-07/0.868, allocations: 0 / 0.595 GB, free: 14.44 MB / 442.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)