Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerGrids 1.0.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Ignoring simflag -noemit -emit_protected=() since it seems broken on HelloWorld Running command: translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009808/0.0009808, allocations: 99.16 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.33/1.33, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06067/0.06067, allocations: 14.17 MB / 284.5 MB, free: 7.141 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004841/0.0004842, allocations: 12 kB / 347.5 MB, free: 18.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08553/0.08602, allocations: 51.11 MB / 398.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001447/0.08751, allocations: 1.144 MB / 399.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008595/0.08839, allocations: 0.5119 MB / 400.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.575e-05/0.08845, allocations: 3.938 kB / 400.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.183e-05/0.08847, allocations: 0 / 400.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.485e-05/0.08855, allocations: 11.97 kB / 400.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000176/0.08873, allocations: 67.81 kB / 400.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.08886, allocations: 103.8 kB / 400.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.838e-05/0.08892, allocations: 4 kB / 400.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001205/0.08904, allocations: 107.8 kB / 400.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001178/0.08917, allocations: 91.72 kB / 400.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.456e-05/0.08921, allocations: 16 kB / 400.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.805e-05/0.08925, allocations: 15.94 kB / 400.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.056e-05/0.0893, allocations: 47.92 kB / 400.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.091e-05/0.08937, allocations: 57.64 kB / 400.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001006/0.08948, allocations: 80.09 kB / 400.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.08949, allocations: 0 / 400.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.08949, allocations: 0 / 400.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.436e-06/0.0895, allocations: 0 / 400.8 MB, free: 13.16 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008153/0.09032, allocations: 498.9 kB / 401.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.09037, allocations: 12.02 kB / 401.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.779e-05/0.09047, allocations: 23.89 kB / 401.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.0906, allocations: 170.9 kB / 401.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.439e-05/0.09064, allocations: 23.89 kB / 401.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.376e-05/0.09071, allocations: 31.92 kB / 401.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005526/0.09127, allocations: 377.1 kB / 401.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.09129, allocations: 0 / 401.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.059e-05/0.09134, allocations: 11.98 kB / 401.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.09136, allocations: 0 / 401.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001645/0.09153, allocations: 63.94 kB / 402 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003937/0.09193, allocations: 372.6 kB / 402.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002464/0.09219, allocations: 174.5 kB / 402.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.09221, allocations: 8 kB / 402.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007014/0.09292, allocations: 0.5152 MB / 403.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.754e-06/0.09293, allocations: 4 kB / 403.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009333/0.09387, allocations: 0.6458 MB / 403.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.09392, allocations: 63.39 kB / 403.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.09404, allocations: 137.7 kB / 403.9 MB, free: 9.871 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.541e-05/0.09409, allocations: 41.69 kB / 404 MB, free: 9.824 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.813e-05/0.09415, allocations: 92.69 kB / 404 MB, free: 9.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.247e-05/0.09422, allocations: 75.22 kB / 404.1 MB, free: 9.656 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.607e-05/0.09425, allocations: 7.938 kB / 404.1 MB, free: 9.648 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.09438, allocations: 330.8 kB / 404.4 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/0.09454, allocations: 92.28 kB / 404.5 MB, free: 9.223 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.09473, allocations: 147.4 kB / 404.7 MB, free: 9.055 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.966e-05/0.09484, allocations: 48.42 kB / 404.7 MB, free: 9.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.09485, allocations: 0 / 404.7 MB, free: 9.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003617/0.09522, allocations: 245.3 kB / 405 MB, free: 8.762 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.09524, allocations: 8 kB / 405 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.09526, allocations: 0 / 405 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.09528, allocations: 7.938 kB / 405 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.584e-05/0.09537, allocations: 19.92 kB / 405 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.09538, allocations: 4 kB / 405 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.09561, allocations: 44 kB / 405.1 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.09565, allocations: 15.98 kB / 405.1 MB, free: 8.664 MB / 302.1 MB Warning: Assuming fixed start value for the following 4 variables: locked:DISCRETE(start = lockedStart fixed = true ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderStop:DISCRETE(start = false fixed = true protected = true ) "whether the monitored signal is under the stop limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = true protected = true ) "wheter the monitored signal is above the maximum limit" type: Boolean running:DISCRETE(start = runningStart fixed = true ) "whether the tap-changer/phase-shifter is running" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 39 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$PRE.state,state,$PRE.locked,$PRE.tap,tap,lookingToIncreaseTap,lookingToDecreaseTap,$PRE.tTapMoved,tTapMoved,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.tValueAboveMaxWhileRunning,tValueAboveMaxWhileRunning,$PRE.running,valueAboveMax,valueUnderStop,locked,running) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002047/0.09586, allocations: 161.5 kB / 405.2 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.339e-05/0.09592, allocations: 35.8 kB / 405.3 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.134e-05/0.096, allocations: 29.62 kB / 405.3 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.09601, allocations: 4 kB / 405.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.09602, allocations: 0 / 405.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.09603, allocations: 3.984 kB / 405.3 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002491/0.09628, allocations: 273.4 kB / 405.6 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.09629, allocations: 0 / 405.6 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.722e-05/0.09633, allocations: 8 kB / 405.6 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.09633, allocations: 4 kB / 405.6 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.134e-05/0.09638, allocations: 27.94 kB / 405.6 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.09639, allocations: 4 kB / 405.6 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.0964, allocations: 3.938 kB / 405.6 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006938/0.0971, allocations: 0.5592 MB / 406.2 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.09726, allocations: 112.9 kB / 406.3 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.64e-05/0.09734, allocations: 27.95 kB / 406.3 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000233/0.09758, allocations: 47.95 kB / 406.4 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002031/0.09779, allocations: 111.7 kB / 406.5 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.108e-05/0.09785, allocations: 47.89 kB / 406.5 MB, free: 7.125 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.412e-05/0.09791, allocations: 98.77 kB / 406.6 MB, free: 7.031 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09792, allocations: 0 / 406.6 MB, free: 7.031 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003066/0.09823, allocations: 75.98 kB / 406.7 MB, free: 6.957 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,state,locked,tap,lookingToIncreaseTap,lookingToDecreaseTap,tTapMoved,valueUnderStop,valueAboveMax,tValueAboveMaxWhileRunning) * Number of discrete states: 6 (valueAboveMax,tap,locked,state,valueUnderStop,tTapMoved) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001708/0.09841, allocations: 129.4 kB / 406.8 MB, free: 6.824 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004801/0.0989, allocations: 305.1 kB / 407.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.09892, allocations: 0 / 407.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006143/0.09954, allocations: 0.7186 MB / 407.8 MB, free: 5.809 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002355/0.09978, allocations: 38.41 kB / 407.9 MB, free: 5.773 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009091/0.1007, allocations: 454.8 kB / 408.3 MB, free: 5.305 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.101, allocations: 0.718 MB / 409 MB, free: 4.562 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.1011, allocations: 33.97 kB / 409.1 MB, free: 4.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.1012, allocations: 43.34 kB / 409.1 MB, free: 4.488 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1012, allocations: 7.938 kB / 409.1 MB, free: 4.48 MB / 302.1 MB Notification: Performance of Templates: time 0.006163/0.1074, allocations: 3.087 MB / 412.2 MB, free: 1.402 MB / 302.1 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile Environment - environmentSimulation: (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) Environment - environmentSimulation: