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.001464/0.001464, allocations: 101.8 kB / 16.41 MB, free: 6.465 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.001617/0.001617, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.519/1.519, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.08087/0.08087, allocations: 16.78 MB / 308 MB, free: 14.38 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 67.89 kB / 428.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1068, allocations: 53.56 MB / 482.3 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002753/0.1096, allocations: 1.435 MB / 483.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009097/0.1106, allocations: 498.8 kB / 484.2 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.657e-05/0.1106, allocations: 0 / 484.2 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.225e-05/0.1107, allocations: 7.922 kB / 484.2 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001003/0.1108, allocations: 15.88 kB / 484.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000206/0.111, allocations: 75.83 kB / 484.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002052/0.1112, allocations: 191.6 kB / 484.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.367e-05/0.1113, allocations: 8 kB / 484.5 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001592/0.1114, allocations: 95.84 kB / 484.6 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.1116, allocations: 95.66 kB / 484.7 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.66e-05/0.1116, allocations: 15.94 kB / 484.7 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.756e-05/0.1117, allocations: 12 kB / 484.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.449e-05/0.1117, allocations: 55.84 kB / 484.8 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.957e-05/0.1118, allocations: 75.78 kB / 484.9 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001769/0.112, allocations: 131.6 kB / 485 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.112, allocations: 0 / 485 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.112, allocations: 0 / 485 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.218e-06/0.1121, allocations: 0 / 485 MB, free: 0.7383 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.001012/0.1131, allocations: 0.5574 MB / 485.6 MB, free: 136 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.1131, allocations: 8.031 kB / 485.6 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.1132, allocations: 24.83 kB / 485.6 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001651/0.1134, allocations: 176.3 kB / 485.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.232e-05/0.1135, allocations: 16.3 kB / 485.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.664e-05/0.1135, allocations: 24.36 kB / 485.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005446/0.1141, allocations: 381.4 kB / 486.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.345e-06/0.1141, allocations: 0 / 486.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.194e-05/0.1142, allocations: 19.97 kB / 486.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.1142, allocations: 0 / 486.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001833/0.1144, allocations: 67.94 kB / 486.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004191/0.1148, allocations: 376.5 kB / 486.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002584/0.1151, allocations: 170.5 kB / 486.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002339/0.1153, allocations: 168.8 kB / 487 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.1153, allocations: 0 / 487 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007192/0.1161, allocations: 0.5182 MB / 487.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.733e-06/0.1161, allocations: 4 kB / 487.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.00096/0.117, allocations: 0.6573 MB / 488.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.1171, allocations: 59.39 kB / 488.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.1172, allocations: 129.8 kB / 488.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.417e-05/0.1173, allocations: 41.7 kB / 488.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.109e-05/0.1173, allocations: 92.59 kB / 488.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.11e-05/0.1174, allocations: 71.23 kB / 488.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.103e-05/0.1175, allocations: 53.7 kB / 488.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1176, allocations: 338.8 kB / 488.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.1178, allocations: 88.16 kB / 489 MB, free: 12.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.118, allocations: 147.5 kB / 489.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003429/0.1183, allocations: 229.8 kB / 489.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1183, allocations: 0 / 489.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003589/0.1187, allocations: 245 kB / 489.6 MB, free: 11.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.1187, allocations: 8 kB / 489.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1187, allocations: 3.938 kB / 489.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.1188, allocations: 4 kB / 489.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.851e-05/0.1189, allocations: 24.05 kB / 489.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.1189, allocations: 4 kB / 489.6 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.1191, allocations: 35.88 kB / 489.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.14e-05/0.1191, allocations: 12 kB / 489.7 MB, free: 11.78 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.0002065/0.1194, allocations: 161.5 kB / 489.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.959e-05/0.1194, allocations: 27.8 kB / 489.9 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.499e-05/0.1195, allocations: 33.62 kB / 489.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.1195, allocations: 0 / 489.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.1195, allocations: 0 / 489.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1195, allocations: 7.984 kB / 489.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002448/0.1198, allocations: 277.4 kB / 490.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.1198, allocations: 0 / 490.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.663e-05/0.1198, allocations: 4 kB / 490.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1198, allocations: 0 / 490.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.186e-05/0.1199, allocations: 35.94 kB / 490.2 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.1199, allocations: 0 / 490.2 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1199, allocations: 4.047 kB / 490.2 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000701/0.1206, allocations: 0.568 MB / 490.8 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/0.1208, allocations: 120.8 kB / 490.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.655e-05/0.1208, allocations: 27.95 kB / 490.9 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.1211, allocations: 35.95 kB / 491 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000226/0.1213, allocations: 91.83 kB / 491.1 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.68e-05/0.1214, allocations: 47.89 kB / 491.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.915e-05/0.1215, allocations: 99.02 kB / 491.2 MB, free: 10.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1215, allocations: 0 / 491.2 MB, free: 10.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005018/0.122, allocations: 75.98 kB / 491.3 MB, free: 10.08 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.0002202/0.1222, allocations: 137.4 kB / 491.4 MB, free: 9.941 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004974/0.1227, allocations: 291.8 kB / 491.7 MB, free: 9.656 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.1228, allocations: 4.25 kB / 491.7 MB, free: 9.652 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006327/0.1234, allocations: 0.7264 MB / 492.4 MB, free: 8.926 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.1238, allocations: 55.83 kB / 492.5 MB, free: 8.871 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009928/0.1248, allocations: 464.8 kB / 492.9 MB, free: 8.387 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.1251, allocations: 0.7215 MB / 493.7 MB, free: 7.637 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.1252, allocations: 39.39 kB / 493.7 MB, free: 7.598 MB / 366.1 MB Notification: Performance of SimCode: time 2.184e-06/0.1252, allocations: 0 / 493.7 MB, free: 7.598 MB / 366.1 MB Notification: Performance of Templates: time 0.004749/0.13, allocations: 2.609 MB / 496.3 MB, free: 4.996 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=480 -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