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.004994/0.004994, allocations: 96.88 kB / 15.73 MB, free: 6.055 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.001191/0.001191, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.247/1.247, allocations: 222.9 MB / 240.4 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.07197/0.07197, allocations: 16.78 MB / 307.3 MB, free: 14.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 64.12 kB / 428.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09461/0.09576, allocations: 53.56 MB / 481.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.00248/0.09827, allocations: 1.45 MB / 483.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009089/0.09921, allocations: 494.8 kB / 483.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.42e-05/0.09928, allocations: 0 / 483.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.272e-05/0.09933, allocations: 7.938 kB / 483.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.776e-05/0.09943, allocations: 15.86 kB / 483.6 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002018/0.09964, allocations: 79.83 kB / 483.7 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001869/0.09984, allocations: 187.6 kB / 483.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.604e-05/0.09989, allocations: 3.984 kB / 483.9 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.1, allocations: 95.84 kB / 484 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001244/0.1002, allocations: 95.61 kB / 484 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.904e-05/0.1002, allocations: 16 kB / 484.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.825e-05/0.1002, allocations: 12 kB / 484.1 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.787e-05/0.1003, allocations: 59.83 kB / 484.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.693e-05/0.1004, allocations: 79.78 kB / 484.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001709/0.1006, allocations: 131.6 kB / 484.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1006, allocations: 0 / 484.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1006, allocations: 0 / 484.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.1006, allocations: 0 / 484.3 MB, free: 0.75 MB / 350.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.0009466/0.1016, allocations: 0.5497 MB / 484.9 MB, free: 156 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.1016, allocations: 8.031 kB / 484.9 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.1017, allocations: 32.88 kB / 484.9 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000145/0.1019, allocations: 184.2 kB / 485.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.477e-05/0.1019, allocations: 12.36 kB / 485.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.842e-05/0.102, allocations: 24.36 kB / 485.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005626/0.1026, allocations: 381.4 kB / 485.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.1026, allocations: 0 / 485.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.073e-05/0.1027, allocations: 11.97 kB / 485.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.1027, allocations: 4 kB / 485.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.1029, allocations: 67.88 kB / 485.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004003/0.1033, allocations: 372.6 kB / 486 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002659/0.1035, allocations: 174.5 kB / 486.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002319/0.1038, allocations: 164.8 kB / 486.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/0.1038, allocations: 0 / 486.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007282/0.1045, allocations: 0.5183 MB / 486.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.733e-06/0.1045, allocations: 0 / 486.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009409/0.1055, allocations: 0.6535 MB / 487.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.1055, allocations: 59.39 kB / 487.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.1057, allocations: 125.8 kB / 487.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.798e-05/0.1057, allocations: 45.69 kB / 487.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.757e-05/0.1058, allocations: 96.69 kB / 487.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.112e-05/0.1059, allocations: 71.58 kB / 487.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.721e-05/0.106, allocations: 53.7 kB / 487.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1061, allocations: 334.8 kB / 488.2 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.1062, allocations: 88.16 kB / 488.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.1064, allocations: 155.5 kB / 488.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003224/0.1068, allocations: 229.8 kB / 488.7 MB, free: 12.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1068, allocations: 0 / 488.7 MB, free: 12.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003514/0.1071, allocations: 253.1 kB / 488.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.1071, allocations: 8 kB / 488.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.1072, allocations: 3.984 kB / 489 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.1072, allocations: 4 kB / 489 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.536e-05/0.1073, allocations: 19.92 kB / 489 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1073, allocations: 7.938 kB / 489 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002075/0.1075, allocations: 31.97 kB / 489 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.1075, allocations: 12 kB / 489 MB, free: 11.79 MB / 366.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.0001836/0.1077, allocations: 157.6 kB / 489.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.267e-05/0.1078, allocations: 31.89 kB / 489.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.346e-05/0.1078, allocations: 29.62 kB / 489.2 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.1079, allocations: 4 kB / 489.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.1079, allocations: 0 / 489.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1079, allocations: 7.984 kB / 489.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002365/0.1081, allocations: 277.4 kB / 489.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1081, allocations: 0 / 489.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.991e-05/0.1082, allocations: 11.94 kB / 489.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.1082, allocations: 0 / 489.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.73e-05/0.1082, allocations: 23.95 kB / 489.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1082, allocations: 0 / 489.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1082, allocations: 0 / 489.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006869/0.1089, allocations: 0.5759 MB / 490.1 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.1091, allocations: 120.9 kB / 490.3 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.627e-05/0.1091, allocations: 23.97 kB / 490.3 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002109/0.1094, allocations: 39.94 kB / 490.3 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/0.1095, allocations: 87.83 kB / 490.4 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.616e-05/0.1096, allocations: 47.89 kB / 490.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.239e-05/0.1097, allocations: 98.64 kB / 490.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1097, allocations: 0 / 490.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000279/0.11, allocations: 75.98 kB / 490.6 MB, free: 10.1 MB / 366.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.0001407/0.1101, allocations: 141.4 kB / 490.8 MB, free: 9.953 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004647/0.1106, allocations: 291.8 kB / 491 MB, free: 9.668 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1106, allocations: 3.938 kB / 491 MB, free: 9.664 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005848/0.1112, allocations: 0.7264 MB / 491.8 MB, free: 8.938 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002945/0.1115, allocations: 55.89 kB / 491.8 MB, free: 8.883 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008743/0.1124, allocations: 435.2 kB / 492.3 MB, free: 8.434 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.1126, allocations: 0.7176 MB / 493 MB, free: 7.688 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001061/0.1127, allocations: 33.92 kB / 493 MB, free: 7.652 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.1129, allocations: 35.41 kB / 493 MB, free: 7.617 MB / 366.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1129, allocations: 0 / 493 MB, free: 7.617 MB / 366.1 MB Notification: Performance of Templates: time 0.006169/0.1191, allocations: 3.693 MB / 496.7 MB, free: 3.938 MB / 366.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=50 -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