Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.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.AC1ph_DC.Elementary.Fault,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Fault",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.001621/0.001621, allocations: 182.8 kB / 8.138 MB, free: 2.223 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.447/1.447, 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.0008737/0.0008737, allocations: 85.36 kB / 261.7 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.1755/0.1755, allocations: 37.98 MB / 347.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2018/0.3773, allocations: 62.44 MB / 410.1 MB, free: 46.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.4808, allocations: 56.31 MB / 466.4 MB, free: 6.348 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3065/0.7873, allocations: 99.49 MB / 0.5526 GB, free: 10.95 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.7876, allocations: 93.25 kB / 0.5527 GB, free: 10.86 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.04278/0.8304, allocations: 15.5 MB / 0.5679 GB, free: 11.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.8305, allocations: 8 kB / 0.5679 GB, free: 11.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001758/0.8307, allocations: 86.97 kB / 0.568 GB, free: 11.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003151/0.8339, allocations: 1.091 MB / 0.569 GB, free: 9.887 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.563e-05/0.8339, allocations: 32 kB / 0.5691 GB, free: 9.855 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.8341, allocations: 39.91 kB / 0.5691 GB, free: 9.816 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001049/0.8351, allocations: 0.5531 MB / 0.5696 GB, free: 9.266 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.8363, allocations: 0.7295 MB / 0.5703 GB, free: 8.488 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.8363, allocations: 3.938 kB / 0.5703 GB, free: 8.484 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.854e-05/0.8364, allocations: 4 kB / 0.5704 GB, free: 8.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/0.8364, allocations: 16 kB / 0.5704 GB, free: 8.465 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003865/0.8403, allocations: 2.866 MB / 0.5732 GB, free: 5.496 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005778/0.8409, allocations: 445.2 kB / 0.5736 GB, free: 5.051 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007467/0.8416, allocations: 460.8 kB / 0.574 GB, free: 4.598 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.615e-05/0.8417, allocations: 12.48 kB / 0.574 GB, free: 4.586 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006713/0.8424, allocations: 0.5168 MB / 0.5745 GB, free: 4.035 MB / 410.7 MB Notification: Performance of pre-optimization done (n=81): time 2.214e-06/0.8424, allocations: 0 / 0.5745 GB, free: 4.035 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.002819/0.8452, allocations: 1.665 MB / 0.5762 GB, free: 2.312 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.8453, allocations: 204.6 kB / 0.5764 GB, free: 2.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004941/0.8458, allocations: 385.2 kB / 0.5767 GB, free: 1.688 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.116e-05/0.8459, allocations: 37.69 kB / 0.5768 GB, free: 1.645 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.8461, allocations: 276 kB / 0.577 GB, free: 1.367 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001886/0.8463, allocations: 229 kB / 0.5773 GB, free: 1.141 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.2e-05/0.8463, allocations: 0 / 0.5773 GB, free: 1.141 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.8465, allocations: 378.8 kB / 0.5776 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004413/0.8469, allocations: 297.9 kB / 0.5779 GB, free: 484 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000601/0.8475, allocations: 472.2 kB / 0.5784 GB, free: 15.94 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004607/0.848, allocations: 320.3 kB / 0.5787 GB, free: 15.63 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.848, allocations: 0 / 0.5787 GB, free: 15.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001504/0.8495, allocations: 0.9175 MB / 0.5796 GB, free: 14.69 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.8496, allocations: 8 kB / 0.5796 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.8496, allocations: 11.94 kB / 0.5796 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005453/0.8501, allocations: 133.6 kB / 0.5797 GB, free: 14.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009684/0.8511, allocations: 207.7 kB / 0.5799 GB, free: 14.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002876/0.854, allocations: 2.929 MB / 0.5828 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006287/0.8547, allocations: 36 kB / 0.5828 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.489e-05/0.8547, allocations: 36 kB / 0.5828 GB, free: 11.11 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 64 (system.initime,$PRE.fault_Ab.fault_pp.t0,fault_Ab.fault_pp.t0,$PRE.fault_Ab.fault_pg.t0,fault_Ab.fault_pg.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch1.switch_2.arc,switch1.switch_2.arc,$PRE.switch1.switch_2.open,switch1.switch_2.open,switch1.switch_2.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.switch2.switch_2.arc,switch2.switch_2.arc,$PRE.switch2.switch_2.open,switch2.switch_2.open,switch2.switch_2.closed,$PRE.fault_Ab.t_zero,fault_Ab.t_zero,$PRE.fault_Ab.v_pos,fault_Ab.v_pos,$PRE.fault_Ab.first,fault_Ab.first,$PRE.fault_Ab.fault_pp.on,fault_Ab.fault_pp.on,$PRE.fault_Ab.fault_pg.on,fault_Ab.fault_pg.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003044/0.8551, allocations: 225.4 kB / 0.583 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.8552, allocations: 67.16 kB / 0.5831 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/0.8566, allocations: 0.8153 MB / 0.5839 GB, free: 9.973 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.8566, allocations: 8 kB / 0.5839 GB, free: 9.965 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.8567, allocations: 4 kB / 0.5839 GB, free: 9.961 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.8567, allocations: 7.969 kB / 0.5839 GB, free: 9.953 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00257/0.8592, allocations: 1.636 MB / 0.5855 GB, free: 8.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.8593, allocations: 0 / 0.5855 GB, free: 8.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007224/0.86, allocations: 155.8 kB / 0.5857 GB, free: 8.117 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006289/0.8606, allocations: 145.5 kB / 0.5858 GB, free: 7.969 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.459e-05/0.8607, allocations: 19.98 kB / 0.5858 GB, free: 7.949 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002704/0.8634, allocations: 2.93 MB / 0.5887 GB, free: 4.793 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.8635, allocations: 3.938 kB / 0.5887 GB, free: 4.789 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002118/0.8656, allocations: 1.367 MB / 0.59 GB, free: 3.379 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002669/0.8683, allocations: 2.204 MB / 0.5922 GB, free: 1.129 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003451/0.8686, allocations: 204.2 kB / 0.5924 GB, free: 0.9102 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.8688, allocations: 19.98 kB / 0.5924 GB, free: 0.8906 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004147/0.8692, allocations: 31.97 kB / 0.5924 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.8694, allocations: 88.45 kB / 0.5925 GB, free: 0.7734 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.54e-05/0.8695, allocations: 23.98 kB / 0.5925 GB, free: 0.75 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003774/0.8699, allocations: 290.9 kB / 0.5928 GB, free: 476 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.00128/0.8712, allocations: 195.9 kB / 0.593 GB, free: 280 kB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (line.i1[1],line.i1[2],line.i2[1],line.i2[2]) * Number of discrete variables: 43 (switch1.switch_2.closed,switch1.switch_1.closed,switch2.switch_1.closed,switch2.switch_2.closed,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,relay1.y[1],relay1.y[2],relay1.cnt,relay2.y[1],relay2.y[2],relay2.cnt,switch1.switch_1.arc,switch1.switch_1.open,switch1.switch_2.arc,switch1.switch_2.open,switch2.switch_1.arc,switch2.switch_1.open,switch2.switch_2.arc,switch2.switch_2.open,fault_Ab.t_zero,fault_Ab.v_pos,fault_Ab.first,fault_Ab.fault_pp.on,fault_Ab.fault_pp.t0,fault_Ab.fault_pg.on,fault_Ab.fault_pg.t0,system.initime) * Number of discrete states: 17 (fault_Ab.t_zero,fault_Ab.fault_pp.on,fault_Ab.fault_pg.on,fault_Ab.v_pos,fault_Ab.first,relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_2.open,switch2.switch_1.open,relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,switch1.switch_2.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002619/0.8714, allocations: 158.1 kB / 0.5931 GB, free: 108 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001888/0.8733, allocations: 1.077 MB / 0.5942 GB, free: 15 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.8733, allocations: 0 / 0.5942 GB, free: 15 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001251/0.8746, allocations: 0.7674 MB / 0.5949 GB, free: 14.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007562/0.8754, allocations: 121.7 kB / 0.5951 GB, free: 14.08 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003212/0.8786, allocations: 1.417 MB / 0.5964 GB, free: 12.62 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000774/0.8794, allocations: 1.079 MB / 0.5975 GB, free: 11.52 MB / 442.7 MB Notification: Performance of SimCode: time 8.52e-07/0.8794, allocations: 0 / 0.5975 GB, free: 11.52 MB / 442.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Fault_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Fault.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe 2>&1)