Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001021/0.001021, allocations: 178.8 kB / 8.132 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.002/1.002, allocations: 194.2 MB / 202.8 MB, free: 8.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001643/0.001643, allocations: 121.6 kB / 247.7 MB, free: 6.242 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1541/0.1541, allocations: 37.91 MB / 330.5 MB, free: 6.91 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.163/0.3171, allocations: 59.34 MB / 389.9 MB, free: 78.02 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06506/0.3822, allocations: 53.24 MB / 443.1 MB, free: 24.88 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2251/0.6074, allocations: 95.89 MB / 0.5264 GB, free: 8.875 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002194/0.6077, allocations: 89.92 kB / 0.5265 GB, free: 8.859 MB / 346.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.03949/0.6472, allocations: 16.04 MB / 0.5421 GB, free: 13.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.6472, allocations: 11.98 kB / 0.5421 GB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004962/0.6477, allocations: 91.2 kB / 0.5422 GB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001494/0.6492, allocations: 0.692 MB / 0.5429 GB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.338e-05/0.6493, allocations: 15.91 kB / 0.5429 GB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.791e-05/0.6493, allocations: 27.98 kB / 0.5429 GB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000845/0.6502, allocations: 0.6253 MB / 0.5436 GB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009686/0.6512, allocations: 0.7948 MB / 0.5443 GB, free: 12.01 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.6512, allocations: 7.938 kB / 0.5443 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.977e-05/0.6513, allocations: 0 / 0.5443 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001286/0.6514, allocations: 55.48 kB / 0.5444 GB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003727/0.6551, allocations: 2.624 MB / 0.547 GB, free: 9.551 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007145/0.6559, allocations: 0.6103 MB / 0.5475 GB, free: 9.133 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004667/0.6563, allocations: 497.4 kB / 0.548 GB, free: 8.832 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.782e-05/0.6564, allocations: 6.875 kB / 0.548 GB, free: 8.828 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.6564, allocations: 42.5 kB / 0.5481 GB, free: 8.781 MB / 362.7 MB Notification: Performance of pre-optimization done (n=60): time 2.224e-06/0.6564, allocations: 3.938 kB / 0.5481 GB, free: 8.777 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.002804/0.6592, allocations: 1.678 MB / 0.5497 GB, free: 7.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.534e-05/0.6593, allocations: 138.5 kB / 0.5498 GB, free: 7.277 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002139/0.6595, allocations: 233.9 kB / 0.5501 GB, free: 7.086 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.811e-05/0.6596, allocations: 25.7 kB / 0.5501 GB, free: 7.055 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.93e-05/0.6597, allocations: 223.4 kB / 0.5503 GB, free: 6.848 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.6598, allocations: 192.3 kB / 0.5505 GB, free: 6.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.001e-05/0.6599, allocations: 0 / 0.5505 GB, free: 6.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.66, allocations: 358.4 kB / 0.5508 GB, free: 6.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004152/0.6604, allocations: 379.4 kB / 0.5512 GB, free: 6.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004586/0.6609, allocations: 0.4887 MB / 0.5517 GB, free: 5.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009294/0.6618, allocations: 0.5572 MB / 0.5522 GB, free: 5.227 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.6618, allocations: 0 / 0.5522 GB, free: 5.227 MB / 362.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001673/0.6635, allocations: 1.106 MB / 0.5533 GB, free: 4.348 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.6635, allocations: 8 kB / 0.5533 GB, free: 4.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.6636, allocations: 7.938 kB / 0.5533 GB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001579/0.6637, allocations: 39.33 kB / 0.5533 GB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003622/0.6641, allocations: 82.33 kB / 0.5534 GB, free: 4.219 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00111/0.6652, allocations: 1.377 MB / 0.5548 GB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003156/0.6655, allocations: 16.03 kB / 0.5548 GB, free: 2.785 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.526e-05/0.6656, allocations: 22.67 kB / 0.5548 GB, free: 2.766 MB / 362.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.0002237/0.6658, allocations: 194.7 kB / 0.555 GB, free: 2.574 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.724e-05/0.6659, allocations: 43.44 kB / 0.555 GB, free: 2.531 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001755/0.6677, allocations: 1.182 MB / 0.5562 GB, free: 1.625 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.244e-05/0.6678, allocations: 19.42 kB / 0.5562 GB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.6678, allocations: 0 / 0.5562 GB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.6678, allocations: 7.906 kB / 0.5562 GB, free: 1.602 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00259/0.6704, allocations: 1.817 MB / 0.558 GB, free: 120 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.6704, allocations: 3.938 kB / 0.558 GB, free: 116 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002784/0.6707, allocations: 59.47 kB / 0.5581 GB, free: 60 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001031/0.6708, allocations: 34.84 kB / 0.5581 GB, free: 28 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.349e-05/0.6709, allocations: 7.984 kB / 0.5581 GB, free: 20 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009228/0.6718, allocations: 1.366 MB / 0.5594 GB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.6718, allocations: 3.938 kB / 0.5594 GB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001691/0.6735, allocations: 1.305 MB / 0.5607 GB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001756/0.6753, allocations: 1.694 MB / 0.5624 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002797/0.6756, allocations: 187.8 kB / 0.5625 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.983e-05/0.6757, allocations: 19.89 kB / 0.5626 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.676, allocations: 15.98 kB / 0.5626 GB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.6761, allocations: 34.45 kB / 0.5626 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.068e-05/0.6761, allocations: 27.11 kB / 0.5626 GB, free: 11.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001377/0.6763, allocations: 178.2 kB / 0.5628 GB, free: 11.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001108/0.6774, allocations: 151.2 kB / 0.5629 GB, free: 11.51 MB / 378.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.0002373/0.6776, allocations: 150.7 kB / 0.5631 GB, free: 11.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001376/0.679, allocations: 1.17 MB / 0.5642 GB, free: 10.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.679, allocations: 0 / 0.5642 GB, free: 10.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009772/0.68, allocations: 0.9514 MB / 0.5652 GB, free: 9.867 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003732/0.6804, allocations: 51.56 kB / 0.5652 GB, free: 9.828 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/0.6822, allocations: 1.226 MB / 0.5664 GB, free: 8.781 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005689/0.6827, allocations: 0.9507 MB / 0.5673 GB, free: 7.832 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.6828, allocations: 0 / 0.5673 GB, free: 7.832 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1)