Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Dynawo_dev_Dynawo.Examples.SVarC.SVarCModeChange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001766/0.001766, allocations: 82.64 kB / 19.96 MB, free: 1.758 MB / 14.72 MB " [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.002077/0.002077, allocations: 164 kB / 23.23 MB, free: 4.883 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.592/1.592, allocations: 158.6 MB / 185 MB, free: 6.395 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/package.mo): time 0.7358/0.7358, allocations: 90.25 MB / 327.5 MB, free: 72 kB / 302.1 MB " [Timeout remaining time 179] Using package Dynawo with version 1.8.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/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 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: translateModel(Dynawo.Examples.SVarC.SVarCModeChange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=388,variableFilter="time|loadPQ.QPu|sVarCStandard.injector.QInjPu",fileNamePrefix="Dynawo_dev_Dynawo.Examples.SVarC.SVarCModeChange") translateModel(Dynawo.Examples.SVarC.SVarCModeChange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=388,variableFilter="time|loadPQ.QPu|sVarCStandard.injector.QInjPu",fileNamePrefix="Dynawo_dev_Dynawo.Examples.SVarC.SVarCModeChange") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.524e-06/2.524e-06, allocations: 0 / 0.4951 GB, free: 52.21 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.487e-05/2.739e-05, allocations: 2.281 kB / 0.4951 GB, free: 52.21 MB / 478.1 MB Notification: Performance of NFInst.instantiate(Dynawo.Examples.SVarC.SVarCModeChange): time 0.005353/0.005381, allocations: 4.381 MB / 0.4994 GB, free: 49.36 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.00432/0.0097, allocations: 2.753 MB / 0.5021 GB, free: 47.44 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004861/0.01019, allocations: 20.88 kB / 0.5021 GB, free: 47.43 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/StaticVarCompensators/BaseControls/ModeHandling.mo:34:3-35:199:writable] Warning: Connector mode is not balanced: The number of potential variables (1) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/StaticVarCompensators/BaseControls/ModeHandling.mo:36:3-36:116:writable] Warning: Connector modeAuto is not balanced: The number of potential variables (1) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/StaticVarCompensators/BaseControls/ModeHandling.mo:37:3-37:115:writable] Warning: Connector modeManual is not balanced: The number of potential variables (1) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/StaticVarCompensators/BaseControls/CalculationBG.mo:28:3-29:205:writable] Warning: Connector mode is not balanced: The number of potential variables (1) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005705/0.01076, allocations: 177 kB / 0.5023 GB, free: 47.32 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005738/0.01133, allocations: 240 kB / 0.5025 GB, free: 47.15 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001655/0.01299, allocations: 0.8767 MB / 0.5034 GB, free: 46.62 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009979/0.01398, allocations: 1.126 MB / 0.5045 GB, free: 46.02 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004244/0.01441, allocations: 265.2 kB / 0.5047 GB, free: 45.85 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003779/0.01479, allocations: 414.6 kB / 0.5051 GB, free: 45.63 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003738/0.01516, allocations: 325.5 kB / 0.5054 GB, free: 45.49 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001606/0.01532, allocations: 117.9 kB / 0.5056 GB, free: 45.48 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003231/0.01564, allocations: 223.6 kB / 0.5058 GB, free: 45.45 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001686/0.01581, allocations: 246.7 kB / 0.506 GB, free: 45.28 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002782/0.01609, allocations: 315.5 kB / 0.5063 GB, free: 45.09 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001334/0.01742, allocations: 1.401 MB / 0.5077 GB, free: 44.47 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.01743, allocations: 0 / 0.5077 GB, free: 44.47 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.01743, allocations: 0.5625 kB / 0.5077 GB, free: 44.47 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.01744, allocations: 0 / 0.5077 GB, free: 44.47 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.003585/0.02103, allocations: 1.446 MB / 0.5091 GB, free: 43.62 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.891e-05/0.02109, allocations: 6.188 kB / 0.5091 GB, free: 43.62 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001314/0.0224, allocations: 276.9 kB / 0.5094 GB, free: 43.54 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007811/0.02318, allocations: 0.5937 MB / 0.5099 GB, free: 43.11 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/0.0234, allocations: 416.6 kB / 0.5103 GB, free: 42.68 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.591e-05/0.02349, allocations: 67.56 kB / 0.5104 GB, free: 42.66 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.02483, allocations: 0.8415 MB / 0.5112 GB, free: 42.24 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.02485, allocations: 7.875 kB / 0.5112 GB, free: 42.23 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.961e-05/0.02492, allocations: 25.28 kB / 0.5113 GB, free: 42.21 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.02494, allocations: 19.97 kB / 0.5113 GB, free: 42.21 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001431/0.02637, allocations: 0.635 MB / 0.5119 GB, free: 41.97 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003831/0.0302, allocations: 2.522 MB / 0.5144 GB, free: 40.25 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001584/0.03178, allocations: 0.6078 MB / 0.5149 GB, free: 40.02 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008248/0.03261, allocations: 317.2 kB / 0.5152 GB, free: 39.89 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.206e-05/0.03267, allocations: 8.141 kB / 0.5153 GB, free: 39.89 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001391/0.03406, allocations: 0.5889 MB / 0.5158 GB, free: 39.65 MB / 478.1 MB Notification: Performance of pre-optimization done (n=70): time 2.605e-06/0.03406, allocations: 0 / 0.5158 GB, free: 39.65 MB / 478.1 MB Notification: Performance of matching and sorting (n=70): time 0.003871/0.03793, allocations: 1.454 MB / 0.5173 GB, free: 39.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.03798, allocations: 69.06 kB / 0.5173 GB, free: 39.03 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.03899, allocations: 0.6572 MB / 0.518 GB, free: 38.73 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.773e-05/0.03905, allocations: 48.8 kB / 0.518 GB, free: 38.68 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003004/0.03936, allocations: 384.6 kB / 0.5184 GB, free: 38.38 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/0.03954, allocations: 209.6 kB / 0.5186 GB, free: 38.21 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002537/0.03979, allocations: 139.5 kB / 0.5187 GB, free: 38.14 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.03994, allocations: 390.7 kB / 0.5191 GB, free: 37.79 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000778/0.04072, allocations: 333 kB / 0.5194 GB, free: 37.66 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008231/0.04154, allocations: 472.1 kB / 0.5198 GB, free: 37.39 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003831/0.04537, allocations: 1.504 MB / 0.5213 GB, free: 36.73 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.854e-06/0.04538, allocations: 4.969 kB / 0.5213 GB, free: 36.73 MB / 478.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.00322/0.0486, allocations: 1.198 MB / 0.5225 GB, free: 36.25 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.04863, allocations: 5.938 kB / 0.5225 GB, free: 36.25 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.04864, allocations: 8.594 kB / 0.5225 GB, free: 36.25 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008811/0.04952, allocations: 315.1 kB / 0.5228 GB, free: 36.15 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004898/0.05001, allocations: 101.4 kB / 0.5229 GB, free: 36.14 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005226/0.05524, allocations: 3.075 MB / 0.5259 GB, free: 33.98 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008025/0.05604, allocations: 102.2 kB / 0.526 GB, free: 33.94 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-05/0.0561, allocations: 24.95 kB / 0.526 GB, free: 33.93 MB / 478.1 MB Warning: Assuming fixed start value for the following 9 variables: sVarCStandard.injector.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = sVarCStandard.injector.State0 fixed = true ) \"Injector connection state\" type: enumeration(Open, Closed, Closed1, Closed2, Closed3, Undefined) line.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = line.State0 fixed = true ) \"Line connection state\" type: enumeration(Open, Closed, Closed1, Closed2, Closed3, Undefined) line.running:DISCRETE(flow=false start = line.Running0 fixed = true ) \"Indicates if the component is running or not\" type: Boolean sVarCStandard.injector.running:DISCRETE(flow=false start = sVarCStandard.injector.Running0 fixed = true ) \"Indicates if the component is running or not\" type: Boolean sVarCStandard.modeHandling.timerModeChangeUp:DISCRETE(start = 1e60 unit = \"s\" fixed = true ) \"Timer for the transition from standby to running mode for high voltage values\" type: Real sVarCStandard.modeHandling.timerModeChangeDown:DISCRETE(start = 1e60 unit = \"s\" fixed = true ) \"Timer for the transition from standby to running mode for low voltage values\" type: Real sVarCStandard.modeHandling.URefAuto:DISCRETE(start = sVarCStandard.modeHandling.URef0 unit = \"kV\" fixed = true ) \"Voltage reference for the regulation if the static var compensator switches from standy to running mode automatically in kV\" type: Real sVarCStandard.blockingFunction.blocked:DISCRETE(flow=false fixed = true ) \"Whether the static var compensator is blocked due to very low voltages\" type: Boolean sVarCStandard.modeHandling.modeAuto.value:DISCRETE(flow=false min = Dynawo.Electrical.StaticVarCompensators.BaseControls.Mode.OFF max = Dynawo.Electrical.StaticVarCompensators.BaseControls.Mode.RUNNING_V start = sVarCStandard.modeHandling.Mode0 fixed = true ) type: enumeration(OFF, STANDBY, RUNNING_V) Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 50 ($PRE.sVarCStandard.injector.state,sVarCStandard.injector.state,$PRE.line.state,line.state,$whenCondition16,sVarCStandard.injector.switchOffSignal3,sVarCStandard.injector.switchOffSignal2,sVarCStandard.injector.switchOffSignal1,line.switchOffSignal2,line.switchOffSignal1,$PRE.line.running,$PRE.sVarCStandard.injector.running,$PRE.sVarCStandard.modeHandling.timerModeChangeUp,$PRE.sVarCStandard.modeHandling.timerModeChangeDown,$PRE.sVarCStandard.modeHandling.URefAuto,$PRE.selectMode.pulseStart,$PRE.sVarCStandard.blockingFunction.blocked,$PRE.sVarCStandard.modeHandling.modeAuto.value,manualMode.y,manualMode.u[2],manualMode.u[1],not1.y,selectMode.pulseStart,sVarCStandard.blockingFunction.blocked,sVarCStandard.modeHandling.URefAuto,sVarCStandard.modeHandling.timerModeChangeDown,sVarCStandard.modeHandling.timerModeChangeUp,sVarCStandard.modeHandling.modeManual.value,sVarCStandard.modeHandling.modeAuto.value,sVarCStandard.modeHandling.mode.value,sVarCStandard.injector.running,line.running,$whenCondition2,$whenCondition1,$whenCondition3,$whenCondition5,$whenCondition4,$whenCondition6,$whenCondition8,$whenCondition7,$whenCondition10,$whenCondition9,$whenCondition11,$whenCondition13,$whenCondition12,$whenCondition15,$whenCondition14,sVarCStandard.regulation.integrator.local_reset,sVarCStandard.regulation.limitations.limIntegratorMin.local_reset,sVarCStandard.regulation.limitations.limIntegratorMax.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,12)} Notification: Performance of prepare postOptimizeDAE: time 0.000629/0.05673, allocations: 310.3 kB / 0.5263 GB, free: 33.71 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.05688, allocations: 84.91 kB / 0.5264 GB, free: 33.67 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002995/0.05987, allocations: 1.149 MB / 0.5275 GB, free: 33.21 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.05989, allocations: 4.141 kB / 0.5275 GB, free: 33.21 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.05989, allocations: 0.75 kB / 0.5275 GB, free: 33.21 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001749/0.06007, allocations: 91.33 kB / 0.5276 GB, free: 33.14 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.06017, allocations: 23.16 kB / 0.5276 GB, free: 33.13 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005409/0.06071, allocations: 64.55 kB / 0.5277 GB, free: 33.12 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000271/0.06098, allocations: 87.09 kB / 0.5278 GB, free: 33.1 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003622/0.0646, allocations: 1.284 MB / 0.529 GB, free: 32.62 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002733/0.06734, allocations: 1.44 MB / 0.5304 GB, free: 31.92 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008156/0.06815, allocations: 361.6 kB / 0.5308 GB, free: 31.78 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0006596/0.06881, allocations: 451.3 kB / 0.5312 GB, free: 31.57 MB / 478.1 MB Notification: Performance of Backend: time 7.02e-07/0.06881, allocations: 0 / 0.5312 GB, free: 31.57 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002612/0.07142, allocations: 0.8242 MB / 0.532 GB, free: 31.12 MB / 478.1 MB Notification: Performance of SimCode: time 0.002654/0.07408, allocations: 1.895 MB / 0.5339 GB, free: 29.85 MB / 478.1 MB Notification: Performance of Templates: time 0.02796/0.102, allocations: 15.47 MB / 0.549 GB, free: 22.99 MB / 478.1 MB " [Timeout remaining time 660] make -j1 -f Dynawo_dev_Dynawo.Examples.SVarC.SVarCModeChange.makefile [Timeout 660] (rm -f Dynawo_dev_Dynawo.Examples.SVarC.SVarCModeChange.pipe ; mkfifo Dynawo_dev_Dynawo.Examples.SVarC.SVarCModeChange.pipe ; head -c 1048576 < Dynawo_dev_Dynawo.Examples.SVarC.SVarCModeChange.pipe >> ../files/Dynawo_dev_Dynawo.Examples.SVarC.SVarCModeChange.sim & ./Dynawo_dev_Dynawo.Examples.SVarC.SVarCModeChange -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Dynawo_dev_Dynawo.Examples.SVarC.SVarCModeChange.pipe 2>&1) [Timeout 480] diffSimulationResults("Dynawo_dev_Dynawo.Examples.SVarC.SVarCModeChange_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/Dynawo/dynawo/sources/Models/Modelica/Dynawo/Examples/references/Dynawo.Examples.SVarC.SVarCModeChange_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Dynawo_dev_Dynawo.Examples.SVarC.SVarCModeChange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadPQ.QPu in file Dynawo_dev_Dynawo.Examples.SVarC.SVarCModeChange_res.mat. Warning: Get data of variable loadPQ.QPu from file Dynawo_dev_Dynawo.Examples.SVarC.SVarCModeChange_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.562475312501192]