Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_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_symb_jac_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.001011/0.001011, allocations: 93.11 kB / 16.03 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 174.6 kB / 16.92 MB, free: 6.719 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.509/1.509, allocations: 205.4 MB / 223.1 MB, free: 5.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05884/0.05884, allocations: 14.16 MB / 285.6 MB, free: 7.031 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.000483/0.0004831, allocations: 20 kB / 348.8 MB, free: 18.18 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09704/0.09754, allocations: 51.11 MB / 399.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001707/0.0993, allocations: 1.16 MB / 401.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.1004, allocations: 0.5389 MB / 401.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.015e-05/0.1004, allocations: 0 / 401.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.378e-05/0.1004, allocations: 3.938 kB / 401.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.813e-05/0.1005, allocations: 7.922 kB / 401.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002078/0.1008, allocations: 59.88 kB / 401.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001897/0.101, allocations: 187.6 kB / 401.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.747e-05/0.101, allocations: 4 kB / 401.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.1012, allocations: 99.77 kB / 402 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.1013, allocations: 87.73 kB / 402 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.244e-05/0.1013, allocations: 12 kB / 402.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.938e-05/0.1014, allocations: 16 kB / 402.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.146e-05/0.1015, allocations: 55.84 kB / 402.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001312/0.1016, allocations: 121.4 kB / 402.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001605/0.1018, allocations: 131.9 kB / 402.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.1018, allocations: 0 / 402.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1018, allocations: 0 / 402.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.1018, allocations: 0 / 402.4 MB, free: 12.53 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.0009246/0.1027, allocations: 0.4912 MB / 402.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.1028, allocations: 8.031 kB / 402.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.401e-05/0.1029, allocations: 20.84 kB / 402.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001722/0.1031, allocations: 172.3 kB / 403.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.249e-05/0.1031, allocations: 16.36 kB / 403.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.879e-05/0.1032, allocations: 24.34 kB / 403.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006142/0.1038, allocations: 385.3 kB / 403.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.1038, allocations: 0 / 403.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.125e-05/0.1039, allocations: 11.98 kB / 403.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.1039, allocations: 4 kB / 403.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001735/0.1041, allocations: 63.94 kB / 403.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004731/0.1046, allocations: 372.6 kB / 403.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002701/0.1048, allocations: 174.6 kB / 404.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/0.1051, allocations: 164.8 kB / 404.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/0.1051, allocations: 0 / 404.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007866/0.1059, allocations: 0.5225 MB / 404.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.343e-06/0.1059, allocations: 4 kB / 404.8 MB, free: 9.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009821/0.1069, allocations: 0.6535 MB / 405.4 MB, free: 9.305 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.581e-05/0.107, allocations: 63.39 kB / 405.5 MB, free: 9.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.1071, allocations: 121.8 kB / 405.6 MB, free: 9.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.946e-05/0.1071, allocations: 45.69 kB / 405.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.075e-05/0.1072, allocations: 92.7 kB / 405.7 MB, free: 8.957 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.05e-05/0.1073, allocations: 79.08 kB / 405.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.174e-05/0.1073, allocations: 37.69 kB / 405.9 MB, free: 8.836 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.1075, allocations: 330.8 kB / 406.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.1076, allocations: 88.3 kB / 406.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.1078, allocations: 155.4 kB / 406.4 MB, free: 8.238 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003509/0.1082, allocations: 237.7 kB / 406.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.1082, allocations: 0 / 406.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003465/0.1085, allocations: 245.1 kB / 406.9 MB, free: 7.742 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.1086, allocations: 8 kB / 406.9 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1086, allocations: 0 / 406.9 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.1086, allocations: 4 kB / 406.9 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.1087, allocations: 24.05 kB / 406.9 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.1087, allocations: 4 kB / 406.9 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002152/0.1089, allocations: 35.97 kB / 407 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.743e-05/0.109, allocations: 12 kB / 407 MB, free: 7.656 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.0001953/0.1092, allocations: 161.5 kB / 407.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.018e-05/0.1092, allocations: 35.8 kB / 407.2 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.358e-05/0.1093, allocations: 25.62 kB / 407.2 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.1093, allocations: 4 kB / 407.2 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.1094, allocations: 0 / 407.2 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.1094, allocations: 3.984 kB / 407.2 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002504/0.1096, allocations: 277.4 kB / 407.5 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1096, allocations: 0 / 407.5 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.634e-05/0.1097, allocations: 7.938 kB / 407.5 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.1097, allocations: 8 kB / 407.5 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.932e-05/0.1097, allocations: 31.94 kB / 407.5 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1097, allocations: 0 / 407.5 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1097, allocations: 0 / 407.5 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.1109, allocations: 1.272 MB / 408.8 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.1111, allocations: 112.9 kB / 408.9 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.08e-05/0.1112, allocations: 27.97 kB / 408.9 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002286/0.1114, allocations: 51.94 kB / 409 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001939/0.1116, allocations: 83.77 kB / 409.1 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.158e-05/0.1117, allocations: 43.95 kB / 409.1 MB, free: 5.391 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.648e-05/0.1118, allocations: 95.27 kB / 409.2 MB, free: 5.297 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.453e-06/0.1118, allocations: 0 / 409.2 MB, free: 5.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003879/0.1122, allocations: 91.91 kB / 409.3 MB, free: 5.207 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.0001712/0.1123, allocations: 129.5 kB / 409.4 MB, free: 5.074 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004765/0.1128, allocations: 300.9 kB / 409.7 MB, free: 4.781 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1128, allocations: 3.938 kB / 409.7 MB, free: 4.777 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006204/0.1135, allocations: 0.7225 MB / 410.4 MB, free: 4.055 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.1138, allocations: 59.19 kB / 410.5 MB, free: 4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.1149, allocations: 0.6338 MB / 411.1 MB, free: 3.328 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002892/0.1152, allocations: 0.718 MB / 411.8 MB, free: 2.586 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001063/0.1153, allocations: 37.97 kB / 411.9 MB, free: 2.551 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.1155, allocations: 43.39 kB / 411.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1155, allocations: 0 / 411.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of Templates: time 0.006779/0.1223, allocations: 3.255 MB / 415.2 MB, free: 15.26 MB / 318.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches