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.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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="mat",numberOfIntervals=1000,variableFilter="Ntap|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_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_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.001456/0.001456, allocations: 107.4 kB / 15.23 MB, free: 0.6406 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.001787/0.001786, allocations: 192.3 kB / 16.14 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.488/1.488, allocations: 205.1 MB / 222 MB, free: 4.781 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06664/0.06664, allocations: 14.15 MB / 283.5 MB, free: 7.305 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.001484/0.001484, allocations: 63.91 kB / 345.8 MB, free: 18.46 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09523/0.09673, allocations: 50.13 MB / 395.9 MB, free: 304 kB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002882/0.09965, allocations: 1.499 MB / 397.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.1007, allocations: 0.5388 MB / 397.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.056e-05/0.1008, allocations: 0 / 397.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.47e-05/0.1009, allocations: 0 / 397.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.717e-05/0.101, allocations: 15.84 kB / 397.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002259/0.1012, allocations: 63.88 kB / 398 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001861/0.1014, allocations: 187.6 kB / 398.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.022e-05/0.1015, allocations: 4 kB / 398.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.1016, allocations: 99.78 kB / 398.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001328/0.1018, allocations: 91.67 kB / 398.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.379e-05/0.1018, allocations: 12 kB / 398.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.477e-05/0.1019, allocations: 15.94 kB / 398.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.054e-05/0.1019, allocations: 55.84 kB / 398.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.1021, allocations: 83.73 kB / 398.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.1022, allocations: 131.9 kB / 398.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1022, allocations: 0 / 398.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.1022, allocations: 4 kB / 398.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.1023, allocations: 0 / 398.7 MB, free: 13.49 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.001057/0.1033, allocations: 0.5574 MB / 399.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.1034, allocations: 12.03 kB / 399.2 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/0.1035, allocations: 24.83 kB / 399.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.1037, allocations: 176.2 kB / 399.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.669e-05/0.1037, allocations: 12.34 kB / 399.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.763e-05/0.1038, allocations: 32.36 kB / 399.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006108/0.1044, allocations: 377.4 kB / 399.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.1044, allocations: 0 / 399.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.57e-05/0.1045, allocations: 7.984 kB / 399.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.1045, allocations: 7.984 kB / 399.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001934/0.1047, allocations: 63.89 kB / 399.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004226/0.1051, allocations: 368.6 kB / 400.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002849/0.1054, allocations: 178.5 kB / 400.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002467/0.1057, allocations: 164.8 kB / 400.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.1057, allocations: 0 / 400.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007727/0.1065, allocations: 0.5231 MB / 401.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.603e-06/0.1065, allocations: 0 / 401.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.001038/0.1075, allocations: 0.6496 MB / 401.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/0.1076, allocations: 59.41 kB / 401.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.1077, allocations: 137.4 kB / 402 MB, free: 9.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.824e-05/0.1078, allocations: 45.69 kB / 402 MB, free: 9.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.385e-05/0.1078, allocations: 88.7 kB / 402.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.344e-05/0.1079, allocations: 79.14 kB / 402.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.352e-05/0.108, allocations: 61.7 kB / 402.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1081, allocations: 330.8 kB / 402.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/0.1083, allocations: 88.28 kB / 402.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002608/0.1086, allocations: 151.4 kB / 402.8 MB, free: 9.105 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003671/0.109, allocations: 249.6 kB / 403.1 MB, free: 8.844 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.109, allocations: 0 / 403.1 MB, free: 8.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003786/0.1094, allocations: 241.2 kB / 403.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.1094, allocations: 4 kB / 403.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1094, allocations: 4.125 kB / 403.3 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.1094, allocations: 4 kB / 403.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.1095, allocations: 19.94 kB / 403.3 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.1096, allocations: 3.938 kB / 403.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002344/0.1098, allocations: 35.95 kB / 403.4 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.458e-05/0.1098, allocations: 12 kB / 403.4 MB, free: 8.52 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.000202/0.11, allocations: 160.9 kB / 403.5 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.879e-05/0.1101, allocations: 31.8 kB / 403.6 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.319e-05/0.1102, allocations: 29.62 kB / 403.6 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1102, allocations: 4 kB / 403.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1102, allocations: 0 / 403.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1102, allocations: 0 / 403.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002378/0.1105, allocations: 273.4 kB / 403.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1105, allocations: 3.984 kB / 403.9 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.09e-05/0.1105, allocations: 8 kB / 403.9 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.1105, allocations: 8 kB / 403.9 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.986e-05/0.1106, allocations: 27.89 kB / 403.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.1106, allocations: 0 / 403.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1106, allocations: 0 / 403.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007254/0.1113, allocations: 0.5631 MB / 404.5 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001755/0.1115, allocations: 120.9 kB / 404.6 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.133e-05/0.1116, allocations: 23.97 kB / 404.6 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/0.1118, allocations: 43.94 kB / 404.7 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/0.112, allocations: 83.83 kB / 404.7 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.125e-05/0.1121, allocations: 43.95 kB / 404.8 MB, free: 7.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001076/0.1122, allocations: 95.27 kB / 404.9 MB, free: 6.926 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1122, allocations: 3.938 kB / 404.9 MB, free: 6.922 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002933/0.1125, allocations: 71.98 kB / 404.9 MB, free: 6.852 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.0001558/0.1127, allocations: 141.4 kB / 405.1 MB, free: 6.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000498/0.1132, allocations: 304.9 kB / 405.4 MB, free: 6.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1132, allocations: 0 / 405.4 MB, free: 6.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006353/0.1138, allocations: 0.7225 MB / 406.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.1142, allocations: 51.8 kB / 406.2 MB, free: 5.637 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000991/0.1152, allocations: 461.8 kB / 406.6 MB, free: 5.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.1155, allocations: 0.714 MB / 407.3 MB, free: 4.422 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001293/0.1156, allocations: 37.97 kB / 407.4 MB, free: 4.387 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001349/0.1158, allocations: 43.39 kB / 407.4 MB, free: 4.344 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1158, allocations: 4 kB / 407.4 MB, free: 4.34 MB / 302.1 MB Notification: Performance of Templates: time 0.006738/0.1225, allocations: 3.3 MB / 410.7 MB, free: 1.051 MB / 302.1 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (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 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches