Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33: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/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0004752/0.0004752, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0003967/0.0003967, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.3401/0.3401, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.0545/0.0545, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine",fmuType="me_cs",version="3.0",platforms={"wasm"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine",fmuType="me_cs",version="3.0",platforms={"wasm"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.475e-06/2.475e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 1.595e-05/1.843e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine): time 0.01744/0.01746, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.007211/0.02467, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.0008768/0.02555, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.001835/0.02739, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.00371/0.03109, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.001787/0.03288, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.002721/0.0356, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.0008172/0.03642, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.002761/0.03918, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.002892/0.04207, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0003991/0.04247, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.0003653/0.04284, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.001278/0.04411, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0016/0.04571, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.003257/0.04897, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0002475/0.04922, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 4.718e-06/0.04922, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 1.762e-05/0.04924, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.01016/0.0594, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0001195/0.05952, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001137/0.06066, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001501/0.06216, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.006366/0.06853, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001848/0.06871, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006806/0.06939, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.007147/0.07654, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 6.114e-05/0.0766, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003841/0.07698, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001205/0.07819, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005342/0.08353, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02115/0.1047, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.004427/0.1091, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.003351/0.1125, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 7.115e-05/0.1125, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004301/0.1168, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=101): time 0.0001699/0.117, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=105): time 0.03329/0.1503, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002496/0.1505, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003211/0.1538, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0005907/0.1543, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0008839/0.1552, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.000884/0.1561, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.001747/0.1579, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0003517/0.1582, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.003499/0.1617, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.003855/0.1656, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.02061/0.1862, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-05/0.1862, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=176) (initialization): time 0.01588/0.2021, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001251/0.2022, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.724e-05/0.2022, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.008191/0.2104, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.2118, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04078/0.2525, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.2543, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004342/0.2547, allocations: 0 / 0, free: 0 / 0 Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: $DER.trafo.i1 = 0.0 $DER.line.i[1,1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 41 (system.initime,ab.fault_pp.t0,$PRE.ab.fault_pp.t0,relay2.cnt,$PRE.relay2.cnt,$whenCondition2,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,trafo.tap_2_internal,trafo.tap_1_internal,$PRE.switch1.switch_1.open,$PRE.switch2.switch_1.open,relay2.y[1],$PRE.relay2.y[1],relay1.y[1],$PRE.relay1.y[1],ab.fault_pp.on,$PRE.ab.fault_pp.on,ab.first,$PRE.ab.first,ab.v_pos,$PRE.ab.v_pos,ab.t_zero,$PRE.ab.t_zero,switch2.switch_1.closed,switch2.switch_1.open,switch2.switch_1.arc,$PRE.switch2.switch_1.arc,switch1.switch_1.closed,switch1.switch_1.open,switch1.switch_1.arc,$PRE.switch1.switch_1.arc,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,44,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002548/0.2573, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/0.2583, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01306/0.2714, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.692e-05/0.2714, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 4.07e-05/0.2714, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.958e-05/0.2715, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01976/0.2912, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/0.2913, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/0.2925, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 0.008174/0.3007, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006178/0.3013, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04028/0.3416, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.3416, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01615/0.3577, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.002675/0.3604, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000918/0.3613, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001428/0.3628, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001923/0.3647, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003986/0.3651, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.002088/0.3672, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 3.985e-05/0.3672, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.004668/0.3719, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 29 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],lineF.v[1,1],lineF.v[1,2],lineF.v[1,3],lineF.v[2,1],lineF.v[2,2],lineF.v[2,3],lineF.i[1,1],lineF.i[1,2],lineF.i[1,3],lineF.i[1,4],lineF.i[2,1],lineF.i[2,2],lineF.i[2,3],lineF.i[2,4],lineF.iF[1],lineF.iF[2]) * Number of discrete variables: 26 (switch1.switch_1.closed,switch2.switch_1.closed,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_1.arc,switch1.switch_1.open,switch2.switch_1.arc,switch2.switch_1.open,ab.t_zero,ab.v_pos,ab.first,ab.fault_pp.on,ab.fault_pp.t0,relay1.y[1],relay1.cnt,relay2.y[1],relay2.cnt,system.initime) * Number of discrete states: 12 (ab.t_zero,ab.fault_pp.on,ab.v_pos,ab.first,relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_1.open,relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 6 systems {(2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(3,7,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01742/0.3893, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.01139/0.4007, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 8.315e-06/0.4007, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.008505/0.4092, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004821/0.414, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06312/0.4771, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002458/0.4796, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.001102/0.4807, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00241/0.4831, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.002022/0.4851, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU modelDescription.xml: time 0.01491/0.5, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU model kernel: time 0.01138/0.5114, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU translated model: time 0.05506/0.5665, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU component link: time 2.724e-05/0.5665, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU precompile: time 2.592e-05/0.5665, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU write (0.2 MB unzipped): time 0.0002085/0.5667, allocations: 0 / 0, free: 0 / 0 Notification: Building FMU for platform 'wasm' (1/1). Notification: Finished FMU for platform 'wasm' (1/1). " [Timeout remaining time 659] simulate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,startTime=0,stopTime=0.5,tolerance=1e-06,numberOfIntervals=20000,outputFormat="empty",variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine",simflags=" -alarm=240 -lv LOG_STATS -startTime=0 -stopTime=0.5 -tolerance=1e-06 -stepSize=2.5e-05 -noemit",resimulateExecutable="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine.fmu") [Timeout 240] "" [Timeout remaining time 238] simulate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,startTime=0,stopTime=0.5,tolerance=1e-06,numberOfIntervals=20000,outputFormat="empty",variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine",simflags=" -alarm=240 -lv LOG_STATS -startTime=0 -stopTime=0.5 -tolerance=1e-06 -stepSize=2.5e-05 -noemit -s fmi3:me:daskr",resimulateExecutable="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine.fmu") [Timeout 240] "" [Timeout remaining time 237] simulate(PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine,startTime=0,stopTime=0.5,tolerance=1e-06,numberOfIntervals=20000,outputFormat="empty",variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoubleLine",simflags=" -alarm=240 -lv LOG_STATS -startTime=0 -stopTime=0.5 -tolerance=1e-06 -stepSize=2.5e-05 -noemit -s fmi3:cs",resimulateExecutable="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_DoubleLine.fmu") [Timeout 240] "" [Timeout remaining time 237] [Calling sys.exit(0), Time elapsed: 10.323902202071622]