Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Dynawo_dev_Dynawo.Examples.SVarC.SVarCStepURef.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.0009734/0.0009734, allocations: 84.44 kB / 20.71 MB, free: 3.844 MB / 18.57 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.0008153/0.0008153, allocations: 169.2 kB / 23.98 MB, free: 0.5664 MB / 18.57 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 0.8826/0.8826, allocations: 158.6 MB / 185.7 MB, free: 3.027 MB / 170.7 MB " [Timeout remaining time 179] 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.4471/0.4471, allocations: 90.26 MB / 328.3 MB, free: 15 MB / 314.7 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.SVarCStepURef,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|sVarCStandard.injector.QInjPu",fileNamePrefix="Dynawo_dev_Dynawo.Examples.SVarC.SVarCStepURef") translateModel(Dynawo.Examples.SVarC.SVarCStepURef,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|sVarCStandard.injector.QInjPu",fileNamePrefix="Dynawo_dev_Dynawo.Examples.SVarC.SVarCStepURef") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 0.4958 GB, free: 19.92 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.482e-05/2.662e-05, allocations: 7.562 kB / 0.4959 GB, free: 19.91 MB / 442.7 MB Notification: Performance of NFInst.instantiate(Dynawo.Examples.SVarC.SVarCStepURef): time 0.004709/0.004736, allocations: 4.259 MB / 0.5 GB, free: 17.05 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.003107/0.007842, allocations: 2.674 MB / 0.5026 GB, free: 15.18 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002525/0.008095, allocations: 14.12 kB / 0.5026 GB, free: 15.18 MB / 442.7 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.0004581/0.008553, allocations: 168.6 kB / 0.5028 GB, free: 15.07 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004103/0.008963, allocations: 227.9 kB / 0.503 GB, free: 14.91 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001227/0.01019, allocations: 0.8415 MB / 0.5038 GB, free: 14.4 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008742/0.01106, allocations: 1.076 MB / 0.5049 GB, free: 13.82 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003543/0.01142, allocations: 262.8 kB / 0.5051 GB, free: 13.65 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003035/0.01172, allocations: 385.2 kB / 0.5055 GB, free: 13.44 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003159/0.01204, allocations: 310.8 kB / 0.5058 GB, free: 13.3 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001453/0.01218, allocations: 109.7 kB / 0.5059 GB, free: 13.3 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003546/0.01254, allocations: 218.1 kB / 0.5061 GB, free: 13.27 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001709/0.01271, allocations: 227.8 kB / 0.5063 GB, free: 13.11 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000273/0.01298, allocations: 297 kB / 0.5066 GB, free: 12.93 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001528/0.01451, allocations: 1.342 MB / 0.5079 GB, free: 12.33 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.01452, allocations: 1.094 kB / 0.5079 GB, free: 12.33 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.01452, allocations: 0 / 0.5079 GB, free: 12.33 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.01453, allocations: 0 / 0.5079 GB, free: 12.33 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.002364/0.01689, allocations: 1.356 MB / 0.5093 GB, free: 11.53 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.01694, allocations: 8.031 kB / 0.5093 GB, free: 11.53 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000774/0.01771, allocations: 272.7 kB / 0.5095 GB, free: 11.45 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006665/0.01838, allocations: 0.5696 MB / 0.5101 GB, free: 11.04 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001652/0.01854, allocations: 408.6 kB / 0.5105 GB, free: 10.61 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.959e-05/0.01863, allocations: 62.39 kB / 0.5105 GB, free: 10.59 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.01969, allocations: 0.7928 MB / 0.5113 GB, free: 10.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.01971, allocations: 8.766 kB / 0.5113 GB, free: 10.17 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.873e-05/0.01976, allocations: 33.38 kB / 0.5113 GB, free: 10.15 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.01977, allocations: 17.41 kB / 0.5114 GB, free: 10.14 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008367/0.02061, allocations: 0.5839 MB / 0.5119 GB, free: 9.918 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002527/0.02314, allocations: 2.491 MB / 0.5144 GB, free: 8.18 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009165/0.02405, allocations: 0.5785 MB / 0.5149 GB, free: 7.941 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004044/0.02446, allocations: 286.3 kB / 0.5152 GB, free: 7.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.276e-05/0.0245, allocations: 6.672 kB / 0.5152 GB, free: 7.816 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006802/0.02518, allocations: 0.5842 MB / 0.5158 GB, free: 7.449 MB / 442.7 MB Notification: Performance of pre-optimization done (n=63): time 2.175e-06/0.02518, allocations: 4 kB / 0.5158 GB, free: 7.445 MB / 442.7 MB Notification: Performance of matching and sorting (n=63): time 0.002086/0.02727, allocations: 1.344 MB / 0.5171 GB, free: 6.742 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.02731, allocations: 91.36 kB / 0.5172 GB, free: 6.645 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005211/0.02783, allocations: 0.6251 MB / 0.5178 GB, free: 6.27 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.024e-05/0.02787, allocations: 43.05 kB / 0.5178 GB, free: 6.227 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.02803, allocations: 368.4 kB / 0.5182 GB, free: 5.902 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.02815, allocations: 198.8 kB / 0.5184 GB, free: 5.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.02829, allocations: 120.7 kB / 0.5185 GB, free: 5.656 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.388e-05/0.02837, allocations: 383.2 kB / 0.5189 GB, free: 5.289 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000411/0.02878, allocations: 302.7 kB / 0.5191 GB, free: 5.141 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004654/0.02924, allocations: 472.2 kB / 0.5196 GB, free: 4.793 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00201/0.03125, allocations: 1.386 MB / 0.5209 GB, free: 4.023 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.03126, allocations: 8.891 kB / 0.521 GB, free: 4.016 MB / 442.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001653/0.03291, allocations: 1.131 MB / 0.5221 GB, free: 3.406 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.03294, allocations: 7.031 kB / 0.5221 GB, free: 3.406 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.03295, allocations: 7.469 kB / 0.5221 GB, free: 3.402 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006059/0.03355, allocations: 320.5 kB / 0.5224 GB, free: 3.254 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002265/0.03378, allocations: 86.36 kB / 0.5225 GB, free: 3.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003204/0.03699, allocations: 3.075 MB / 0.5255 GB, free: 0.8828 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003109/0.0373, allocations: 86.84 kB / 0.5255 GB, free: 0.8359 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.329e-05/0.03734, allocations: 23.31 kB / 0.5256 GB, free: 0.832 MB / 442.7 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: 15 * Number of states: 0 () * Number of discrete variables: 43 ($PRE.sVarCStandard.injector.state,sVarCStandard.injector.state,$PRE.line.state,line.state,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.sVarCStandard.blockingFunction.blocked,$PRE.sVarCStandard.modeHandling.modeAuto.value,sVarCStandard.modeHandling.modeManual.value,sVarCStandard.blockingFunction.blocked,sVarCStandard.modeHandling.URefAuto,sVarCStandard.modeHandling.timerModeChangeDown,sVarCStandard.modeHandling.timerModeChangeUp,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 (74): * Single equations (assignments): 73 * 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.0003474/0.03769, allocations: 296.1 kB / 0.5259 GB, free: 0.6016 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.528e-05/0.03777, allocations: 80.72 kB / 0.5259 GB, free: 0.5586 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001793/0.03957, allocations: 1.145 MB / 0.527 GB, free: 15.9 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.03957, allocations: 1.375 kB / 0.527 GB, free: 15.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.03958, allocations: 3.938 kB / 0.5271 GB, free: 15.89 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.03969, allocations: 90.3 kB / 0.5271 GB, free: 15.82 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.653e-05/0.03975, allocations: 21.67 kB / 0.5272 GB, free: 15.81 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.03997, allocations: 59.66 kB / 0.5272 GB, free: 15.78 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001578/0.04013, allocations: 80.48 kB / 0.5273 GB, free: 15.73 MB / 458.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002035/0.04217, allocations: 1.216 MB / 0.5285 GB, free: 15.09 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001685/0.04385, allocations: 1.322 MB / 0.5298 GB, free: 14.33 MB / 458.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004856/0.04434, allocations: 324 kB / 0.5301 GB, free: 14.16 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004736/0.04481, allocations: 437.5 kB / 0.5305 GB, free: 13.89 MB / 458.7 MB Notification: Performance of Backend: time 9.52e-07/0.04481, allocations: 0 / 0.5305 GB, free: 13.89 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001678/0.04649, allocations: 0.7903 MB / 0.5313 GB, free: 13.09 MB / 458.7 MB Notification: Performance of SimCode: time 0.002131/0.04862, allocations: 1.973 MB / 0.5332 GB, free: 11.06 MB / 458.7 MB [CodegenCpp.tpl:12351:11-12351:11:writable] Error: Template error: Unsupported zero crossing at 1: sVarCStandard.regulation.limitations.limIntegratorMin.y < sVarCStandard.regulation.limitations.limIntegratorMin.outMin and sVarCStandard.regulation.limitations.limIntegratorMin.k * sVarCStandard.regulation.limitations.add2.y < 0.0 or sVarCStandard.regulation.limitations.limIntegratorMin.y > sVarCStandard.regulation.limitations.limIntegratorMin.outMax and sVarCStandard.regulation.limitations.limIntegratorMin.k * sVarCStandard.regulation.limitations.add2.y > 0.0. [CodegenCpp.tpl:12351:11-12351:11:writable] Error: Template error: Unsupported zero crossing at 2: sVarCStandard.regulation.limitations.limIntegratorMax.y < sVarCStandard.regulation.limitations.limIntegratorMax.outMin and sVarCStandard.regulation.limitations.limIntegratorMax.k * sVarCStandard.regulation.limitations.add1.y < 0.0 or sVarCStandard.regulation.limitations.limIntegratorMax.y > sVarCStandard.regulation.limitations.limIntegratorMax.outMax and sVarCStandard.regulation.limitations.limIntegratorMax.k * sVarCStandard.regulation.limitations.add1.y > 0.0. [CodegenCpp.tpl:12351:11-12351:11:writable] Error: Template error: Unsupported zero crossing at 7: (time - sVarCStandard.modeHandling.timerModeChangeUp >= sVarCStandard.modeHandling.tThresholdUp or time - sVarCStandard.modeHandling.timerModeChangeDown >= sVarCStandard.modeHandling.tThresholdDown) and pre(sVarCStandard.modeHandling.modeAuto.value) == Dynawo.Electrical.StaticVarCompensators.BaseControls.Mode.STANDBY. [CodegenCpp.tpl:12351:11-12351:11:writable] Error: Template error: Unsupported zero crossing at 9: sVarCStandard.injector.UPu < sVarCStandard.blockingFunction.UUnblockUpPu and sVarCStandard.injector.UPu > sVarCStandard.blockingFunction.UUnblockDownPu. Error: Internal error SimCode DAEmode: The model Dynawo.Examples.SVarC.SVarCStepURef could not be translated " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.405007118359208] Failed to read output from testmodel.py, exit status != 0: 0.06619538739323616 0.07398782500000001 0.057807897000000004 Calling exit ...