Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.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.Transmission.RXline,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_RXline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.RXline,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_RXline",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.001125/0.001125, allocations: 181.5 kB / 8.134 MB, free: 2.215 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.458/1.458, allocations: 205.2 MB / 213.7 MB, free: 13.91 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.0009906/0.0009906, allocations: 91.39 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2471/0.2471, allocations: 37.97 MB / 347.7 MB, free: 7.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2574/0.5045, allocations: 62.43 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.6352, allocations: 56.32 MB / 466.4 MB, free: 6.379 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3866/1.022, allocations: 101.9 MB / 0.555 GB, free: 8.574 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002649/1.022, allocations: 87.95 kB / 0.5551 GB, free: 8.488 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.06742/1.09, allocations: 22.68 MB / 0.5773 GB, free: 1.484 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.534e-05/1.09, allocations: 12 kB / 0.5773 GB, free: 1.473 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001319/1.091, allocations: 158.6 kB / 0.5774 GB, free: 1.316 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004747/1.096, allocations: 1.207 MB / 0.5786 GB, free: 68 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/1.096, allocations: 35.94 kB / 0.5786 GB, free: 32 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004525/1.096, allocations: 60.05 kB / 0.5787 GB, free: 15.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002369/1.099, allocations: 1.031 MB / 0.5797 GB, free: 14.94 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002532/1.101, allocations: 1.164 MB / 0.5808 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.892e-05/1.101, allocations: 7.844 kB / 0.5808 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.88e-05/1.102, allocations: 11.97 kB / 0.5808 GB, free: 13.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/1.102, allocations: 53.98 kB / 0.5809 GB, free: 13.64 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007184/1.109, allocations: 4.425 MB / 0.5852 GB, free: 9.074 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/1.11, allocations: 0.785 MB / 0.586 GB, free: 8.27 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008049/1.111, allocations: 0.6214 MB / 0.5866 GB, free: 7.645 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.393e-05/1.111, allocations: 16.58 kB / 0.5866 GB, free: 7.629 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001108/1.112, allocations: 0.7988 MB / 0.5874 GB, free: 6.793 MB / 426.7 MB Notification: Performance of pre-optimization done (n=126): time 3.466e-06/1.112, allocations: 0 / 0.5874 GB, free: 6.793 MB / 426.7 MB Notification: Performance of matching and sorting (n=127): time 0.004964/1.117, allocations: 2.755 MB / 0.5901 GB, free: 3.977 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001707/1.117, allocations: 238.5 kB / 0.5903 GB, free: 3.695 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000614/1.118, allocations: 380.9 kB / 0.5907 GB, free: 3.316 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.057e-05/1.118, allocations: 41.69 kB / 0.5907 GB, free: 3.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000325/1.118, allocations: 336.2 kB / 0.591 GB, free: 2.934 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003643/1.119, allocations: 362.9 kB / 0.5914 GB, free: 2.574 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.853e-05/1.119, allocations: 0 / 0.5914 GB, free: 2.574 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002414/1.119, allocations: 402.8 kB / 0.5918 GB, free: 2.172 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008648/1.12, allocations: 0.507 MB / 0.5923 GB, free: 1.664 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009943/1.121, allocations: 0.7423 MB / 0.593 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/1.122, allocations: 0.5954 MB / 0.5936 GB, free: 248 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.239e-05/1.122, allocations: 4 kB / 0.5936 GB, free: 244 kB / 426.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004042/1.126, allocations: 1.898 MB / 0.5954 GB, free: 14.33 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/1.126, allocations: 4 kB / 0.5954 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003053/1.129, allocations: 1.613 MB / 0.597 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00209/1.131, allocations: 0.6407 MB / 0.5976 GB, free: 12.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006751/1.132, allocations: 127.8 kB / 0.5977 GB, free: 11.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009352/1.141, allocations: 5.383 MB / 0.603 GB, free: 6.434 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000898/1.142, allocations: 27.97 kB / 0.603 GB, free: 6.406 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002361/1.143, allocations: 44 kB / 0.6031 GB, free: 6.363 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 67 (system.initime,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 116 * Array equations: 3 * Algorithm blocks: 2 * 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 {(7,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005197/1.143, allocations: 233.2 kB / 0.6033 GB, free: 6.117 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000351/1.144, allocations: 79.06 kB / 0.6034 GB, free: 6.039 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002369/1.146, allocations: 1.281 MB / 0.6046 GB, free: 4.754 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.406e-05/1.146, allocations: 27.89 kB / 0.6046 GB, free: 4.727 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/1.146, allocations: 4 kB / 0.6046 GB, free: 4.723 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.635e-05/1.146, allocations: 11.97 kB / 0.6047 GB, free: 4.711 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00513/1.151, allocations: 2.764 MB / 0.6074 GB, free: 1.844 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.601e-05/1.151, allocations: 7.922 kB / 0.6074 GB, free: 1.836 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/1.152, allocations: 216.2 kB / 0.6076 GB, free: 1.625 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.441e-05/1.152, allocations: 8 kB / 0.6076 GB, free: 1.617 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/1.153, allocations: 11.98 kB / 0.6076 GB, free: 1.605 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.845e-05/1.153, allocations: 15.92 kB / 0.6076 GB, free: 1.59 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.604e-06/1.153, allocations: 4 kB / 0.6076 GB, free: 1.586 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003628/1.156, allocations: 2.392 MB / 0.6099 GB, free: 15.05 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004507/1.161, allocations: 3.596 MB / 0.6135 GB, free: 11.31 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002925/1.161, allocations: 152.1 kB / 0.6136 GB, free: 11.14 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001676/1.161, allocations: 27.92 kB / 0.6136 GB, free: 11.11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005335/1.162, allocations: 35.95 kB / 0.6137 GB, free: 11.08 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002569/1.162, allocations: 112.5 kB / 0.6138 GB, free: 10.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-05/1.162, allocations: 35.98 kB / 0.6138 GB, free: 10.93 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.000414/1.163, allocations: 290.9 kB / 0.6141 GB, free: 10.65 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001835/1.164, allocations: 276 kB / 0.6143 GB, free: 10.38 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 47 (switch1.switch_b.closed,switch1.switch_c.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_b.closed,switch2.switch_c.closed,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,system.initime) * Number of discrete states: 16 (relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch2.switch_c.open,switch2.switch_a.open,switch2.switch_b.open,switch1.switch_b.open,switch1.switch_c.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 88 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * 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.000411/1.165, allocations: 194.8 kB / 0.6145 GB, free: 10.19 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002983/1.168, allocations: 1.69 MB / 0.6162 GB, free: 8.473 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/1.168, allocations: 0 / 0.6162 GB, free: 8.473 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001361/1.169, allocations: 0.9707 MB / 0.6171 GB, free: 7.488 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008172/1.17, allocations: 103.1 kB / 0.6172 GB, free: 7.387 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003966/1.174, allocations: 1.948 MB / 0.6191 GB, free: 5.375 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/1.175, allocations: 1.186 MB / 0.6203 GB, free: 4.16 MB / 458.7 MB Notification: Performance of SimCode: time 7.41e-07/1.175, allocations: 0 / 0.6203 GB, free: 4.16 MB / 458.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_RXline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_RXline.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1)