Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.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 Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0002201/0.0002201, 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.0001916/0.0001916, 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.1049/0.1049, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.01054/0.01054, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] Using package PowerSystems with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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: simulate(PowerSystems.Examples.AC3ph.Generation.GenOrder3and7,startTime=0,stopTime=0.5,tolerance=1e-06,numberOfIntervals=1000,outputFormat="mat",variableFilter="Time|turboGen1.generator.i.[0-9,]+.|turboGen1.generator.tau_el|turboGen2.generator.i.[0-9,]+.|turboGen2.generator.tau_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7",simflags="-abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS") simulate(PowerSystems.Examples.AC3ph.Generation.GenOrder3and7,startTime=0,stopTime=0.5,tolerance=1e-06,numberOfIntervals=1000,outputFormat="mat",variableFilter="Time|turboGen1.generator.i.[0-9,]+.|turboGen1.generator.tau_el|turboGen2.generator.i.[0-9,]+.|turboGen2.generator.tau_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7",simflags="-abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS") [Timeout 900] "Notification: Performance of FrontEnd - loaded program: time 8.21e-07/8.21e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 1.402e-05/1.484e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.GenOrder3and7): time 0.01711/0.01712, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.01924/0.03636, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.001029/0.03739, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.1675/0.2049, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.005394/0.2103, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.002952/0.2133, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.01941/0.2327, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.003515/0.2362, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.03713/0.2733, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.002137/0.2754, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0004001/0.2758, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.001482/0.2773, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.001316/0.2786, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.001064/0.2797, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.003991/0.2837, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0004023/0.2841, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 2.004e-06/0.2841, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 1.85e-05/0.2841, 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: 520 * Number of variables: 520 Notification: Performance of Generate backend data structure: time 0.005059/0.2892, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0001884/0.2894, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001228/0.2906, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.002727/0.2933, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002572/0.2936, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005577/0.2941, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.003179/0.2973, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 9.446e-05/0.2974, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003012/0.2977, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003911/0.2981, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001604/0.2997, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009992/0.3097, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.311, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.0009158/0.3119, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 9.18e-05/0.312, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00153/0.3135, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=200): time 2.842e-05/0.3135, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=246): time 0.01743/0.331, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/0.3311, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001443/0.3325, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0003636/0.3329, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0007287/0.3336, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0007994/0.3344, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009464/0.3354, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 2.601e-05/0.3354, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007772/0.3362, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.001135/0.3373, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.002241/0.3396, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.494e-05/0.3396, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=332) (initialization): time 0.007498/0.3471, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 8.544e-05/0.3472, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006625/0.3538, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.004679/0.3585, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001559/0.3601, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.019/0.3791, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/0.3802, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002574/0.3805, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001327/0.3818, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001013/0.3828, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002008/0.3848, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.98e-05/0.3849, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=332) (initialization_lambda0): time 0.005863/0.3907, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 6.378e-05/0.3908, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00493/0.3957, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.004801/0.4005, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008489/0.4014, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01698/0.4183, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.4194, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002589/0.4197, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 58 (system.initime,relayGrd.cnt,$PRE.relayGrd.cnt,$whenCondition1,relayGrd.y[3],$PRE.relayGrd.y[3],relayGrd.y[2],$PRE.relayGrd.y[2],relayGrd.y[1],$PRE.relayGrd.y[1],switchGrd2.switch_c.closed,switchGrd2.switch_c.open,$PRE.switchGrd2.switch_c.open,switchGrd2.switch_c.arc,$PRE.switchGrd2.switch_c.arc,switchGrd2.switch_b.closed,switchGrd2.switch_b.open,$PRE.switchGrd2.switch_b.open,switchGrd2.switch_b.arc,$PRE.switchGrd2.switch_b.arc,switchGrd2.switch_a.closed,switchGrd2.switch_a.open,$PRE.switchGrd2.switch_a.open,switchGrd2.switch_a.arc,$PRE.switchGrd2.switch_a.arc,switchGrd1.switch_c.closed,switchGrd1.switch_c.open,$PRE.switchGrd1.switch_c.open,switchGrd1.switch_c.arc,$PRE.switchGrd1.switch_c.arc,switchGrd1.switch_b.closed,switchGrd1.switch_b.open,$PRE.switchGrd1.switch_b.open,switchGrd1.switch_b.arc,$PRE.switchGrd1.switch_b.arc,switchGrd1.switch_a.closed,switchGrd1.switch_a.open,$PRE.switchGrd1.switch_a.open,switchGrd1.switch_a.arc,$PRE.switchGrd1.switch_a.arc,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition19) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 202 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 6 systems {1, 1, 2, 1, 1, 2} * 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,22,100.0%), (1,2,100.0%), (6,11,77.8%), (1,3,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (6,12,77.8%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,5), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0009772/0.4206, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004743/0.4211, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005216/0.4263, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.971e-05/0.4264, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/0.4264, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.924e-05/0.4265, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009023/0.4355, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.487e-05/0.4355, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001611/0.4371, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 0.0022/0.4393, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002658/0.4396, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005774/0.4454, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/0.4454, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005703/0.4511, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.0008816/0.452, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006852/0.4527, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009193/0.4536, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000915/0.4545, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002643/0.4547, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.0007797/0.4555, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 7.267e-05/0.4556, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.004684/0.4603, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 22 (turboGen1.generator.i_s[1],turboGen1.generator.i_s[2],turboGen1.generator.i_s[3],turboGen1.exciter.voltageReg.x_scaled[1],turboGen1.rotor.phi,turboGen1.rotor.w,line1.i[1],line1.i[2],line1.i[3],turboGen2.generator.i_s[1],turboGen2.generator.i_s[2],turboGen2.generator.i_s[3],turboGen2.generator.i_rd[1],turboGen2.generator.i_rd[2],turboGen2.generator.i_rq[1],turboGen2.generator.i_rq[2],turboGen2.exciter.voltageReg.x_scaled[1],turboGen2.rotor.phi,turboGen2.rotor.w,line2.i[1],line2.i[2],line2.i[3]) * Number of discrete variables: 42 (switchGrd1.switch_c.closed,switchGrd2.switch_c.closed,switchGrd1.switch_a.closed,switchGrd2.switch_a.closed,switchGrd1.switch_b.closed,switchGrd2.switch_b.closed,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,switchGrd1.switch_a.arc,switchGrd1.switch_a.open,switchGrd1.switch_b.arc,switchGrd1.switch_b.open,switchGrd1.switch_c.arc,switchGrd1.switch_c.open,switchGrd2.switch_a.arc,switchGrd2.switch_a.open,switchGrd2.switch_b.arc,switchGrd2.switch_b.open,switchGrd2.switch_c.arc,switchGrd2.switch_c.open,relayGrd.y[1],relayGrd.y[2],relayGrd.y[3],relayGrd.cnt,system.initime) * Number of discrete states: 11 (relayGrd.y[3],relayGrd.y[2],relayGrd.y[1],relayGrd.cnt,$whenCondition1,switchGrd1.switch_b.open,switchGrd2.switch_b.open,switchGrd1.switch_a.open,switchGrd2.switch_a.open,switchGrd1.switch_c.open,switchGrd2.switch_c.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 183 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,21,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001089/0.4614, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.009964/0.4713, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4713, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.00198/0.4733, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002093/0.4754, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007146/0.4826, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.4836, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.001062/0.4847, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/0.486, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.0001043/0.4861, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.01007/0.4961, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 899] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 1.4240360679104924]