Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=1000,variableFilter="Ntap|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Ntap|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_dev_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.001092/0.001092, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001219/0.001219, allocations: 189.4 kB / 17.29 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.08335/0.08335, allocations: 16.75 MB / 307.9 MB, free: 14.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 64.06 kB / 374.5 MB, free: 48.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1014, allocations: 53.57 MB / 428.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002247/0.1037, allocations: 1.45 MB / 429.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007325/0.1045, allocations: 491.3 kB / 430 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.692e-05/0.1045, allocations: 0 / 430 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.618e-05/0.1046, allocations: 3.938 kB / 430 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.869e-05/0.1047, allocations: 15.84 kB / 430 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001874/0.1048, allocations: 79.83 kB / 430.1 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001601/0.105, allocations: 179.6 kB / 430.3 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.974e-05/0.1051, allocations: 8 kB / 430.3 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.726e-05/0.1052, allocations: 107.7 kB / 430.4 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001013/0.1053, allocations: 87.73 kB / 430.5 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.352e-05/0.1053, allocations: 12 kB / 430.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.572e-05/0.1054, allocations: 16 kB / 430.5 MB, free: 8.145 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.847e-05/0.1054, allocations: 47.91 kB / 430.6 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.557e-05/0.1055, allocations: 79.73 kB / 430.7 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001336/0.1056, allocations: 131.6 kB / 430.8 MB, free: 7.891 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.768e-06/0.1057, allocations: 0 / 430.8 MB, free: 7.891 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1057, allocations: 0 / 430.8 MB, free: 7.891 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1057, allocations: 0 / 430.8 MB, free: 7.891 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.0008444/0.1065, allocations: 0.5574 MB / 431.3 MB, free: 7.285 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.1066, allocations: 12.03 kB / 431.3 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.961e-05/0.1067, allocations: 20.83 kB / 431.4 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.1068, allocations: 183.2 kB / 431.5 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.1068, allocations: 16.34 kB / 431.6 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.936e-05/0.1069, allocations: 28.36 kB / 431.6 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004774/0.1074, allocations: 377.4 kB / 432 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1074, allocations: 0 / 432 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.327e-05/0.1074, allocations: 11.98 kB / 432 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.1074, allocations: 0 / 432 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001722/0.1076, allocations: 75.81 kB / 432 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003368/0.108, allocations: 372.6 kB / 432.4 MB, free: 6.121 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002137/0.1082, allocations: 174.5 kB / 432.6 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.1084, allocations: 169.1 kB / 432.7 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.1084, allocations: 3.938 kB / 432.7 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005792/0.109, allocations: 0.5258 MB / 433.3 MB, free: 5.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.472e-06/0.109, allocations: 4 kB / 433.3 MB, free: 5.227 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0007657/0.1098, allocations: 0.6418 MB / 433.9 MB, free: 4.578 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.901e-05/0.1098, allocations: 59.41 kB / 434 MB, free: 4.508 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.034e-05/0.1099, allocations: 125.7 kB / 434.1 MB, free: 4.375 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.1099, allocations: 45.69 kB / 434.1 MB, free: 4.324 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.66e-05/0.1099, allocations: 92.7 kB / 434.2 MB, free: 4.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.115e-05/0.11, allocations: 71.27 kB / 434.3 MB, free: 4.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.416e-05/0.1101, allocations: 57.7 kB / 434.4 MB, free: 4.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.794e-05/0.1101, allocations: 334.8 kB / 434.7 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.1103, allocations: 88.28 kB / 434.8 MB, free: 3.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.1104, allocations: 147.4 kB / 434.9 MB, free: 3.508 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002826/0.1107, allocations: 233.7 kB / 435.1 MB, free: 3.262 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.1107, allocations: 4 kB / 435.2 MB, free: 3.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002841/0.111, allocations: 237.2 kB / 435.4 MB, free: 3.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.111, allocations: 7.984 kB / 435.4 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.111, allocations: 4 kB / 435.4 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.111, allocations: 4.062 kB / 435.4 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.244e-05/0.1111, allocations: 19.94 kB / 435.4 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.1111, allocations: 0 / 435.4 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.1113, allocations: 39.95 kB / 435.5 MB, free: 2.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.1114, allocations: 8 kB / 435.5 MB, free: 2.938 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 ($PRE.locked,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.running,tValueAboveMaxWhileRunning,$PRE.tValueAboveMaxWhileRunning,tTapMoved,$PRE.tTapMoved,lookingToDecreaseTap,lookingToIncreaseTap,tap,$PRE.tap,state,$PRE.state,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition21,$whenCondition20,$whenCondition19,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001555/0.1115, allocations: 175.5 kB / 435.6 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.441e-05/0.1116, allocations: 31.8 kB / 435.7 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.894e-05/0.1117, allocations: 29.62 kB / 435.7 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1117, allocations: 4 kB / 435.7 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1117, allocations: 3.938 kB / 435.7 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.1117, allocations: 4.031 kB / 435.7 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001659/0.1119, allocations: 273.4 kB / 436 MB, free: 2.367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1119, allocations: 4 kB / 436 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.716e-05/0.1119, allocations: 15.92 kB / 436 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.1119, allocations: 4 kB / 436 MB, free: 2.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.617e-05/0.1119, allocations: 27.95 kB / 436 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.112, allocations: 0 / 436 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.112, allocations: 0 / 436 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005575/0.1125, allocations: 0.568 MB / 436.6 MB, free: 1.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.1126, allocations: 116.9 kB / 436.7 MB, free: 1.598 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.814e-05/0.1127, allocations: 23.97 kB / 436.7 MB, free: 1.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001896/0.1129, allocations: 43.94 kB / 436.8 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.1131, allocations: 83.84 kB / 436.9 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-05/0.1131, allocations: 43.95 kB / 436.9 MB, free: 1.406 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.469e-05/0.1132, allocations: 98.39 kB / 437 MB, free: 1.312 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.1132, allocations: 0 / 437 MB, free: 1.312 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002561/0.1134, allocations: 83.91 kB / 437.1 MB, free: 1.23 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001085/0.1136, allocations: 129.5 kB / 437.2 MB, free: 1.098 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003959/0.114, allocations: 291.9 kB / 437.5 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.114, allocations: 8.062 kB / 437.5 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003964/0.1144, allocations: 0.7225 MB / 438.2 MB, free: 84 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.1147, allocations: 63.7 kB / 438.3 MB, free: 20 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009687/0.1156, allocations: 439 kB / 438.7 MB, free: 15.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.1159, allocations: 0.7177 MB / 439.4 MB, free: 14.82 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.1161, allocations: 25.95 kB / 439.5 MB, free: 14.79 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.1162, allocations: 47.39 kB / 439.5 MB, free: 14.75 MB / 318.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1162, allocations: 0 / 439.5 MB, free: 14.75 MB / 318.1 MB Notification: Performance of Templates: time 0.006926/0.1231, allocations: 3.661 MB / 443.2 MB, free: 11.1 MB / 318.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches