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.001085/0.001085, allocations: 114.5 kB / 16.42 MB, free: 6.496 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.001087/0.001087, allocations: 188.3 kB / 17.35 MB, free: 5.758 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.32/1.32, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07515/0.07515, allocations: 16.77 MB / 308 MB, free: 14.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 67.89 kB / 428.8 MB, free: 9.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09897/0.1002, allocations: 53.55 MB / 482.3 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002629/0.1028, allocations: 1.457 MB / 483.8 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009245/0.1038, allocations: 490.8 kB / 484.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.716e-05/0.1039, allocations: 0 / 484.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.121e-05/0.1039, allocations: 11.94 kB / 484.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.679e-05/0.104, allocations: 11.86 kB / 484.3 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002138/0.1042, allocations: 83.81 kB / 484.4 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001875/0.1044, allocations: 183.6 kB / 484.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.702e-05/0.1045, allocations: 4 kB / 484.5 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.1046, allocations: 103.8 kB / 484.6 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.1047, allocations: 87.73 kB / 484.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.114e-05/0.1048, allocations: 12 kB / 484.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.201e-05/0.1048, allocations: 12 kB / 484.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.805e-05/0.1049, allocations: 55.84 kB / 484.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.105, allocations: 83.78 kB / 484.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000158/0.1051, allocations: 127.6 kB / 485 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1052, allocations: 4 kB / 485 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1052, allocations: 0 / 485 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.1052, allocations: 0 / 485 MB, free: 0.7617 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.0009217/0.1061, allocations: 0.5535 MB / 485.6 MB, free: 164 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.1061, allocations: 8.031 kB / 485.6 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.706e-05/0.1062, allocations: 28.88 kB / 485.6 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001456/0.1064, allocations: 184.2 kB / 485.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.1064, allocations: 16.34 kB / 485.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.378e-05/0.1065, allocations: 28.36 kB / 485.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005334/0.107, allocations: 373.4 kB / 486.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.1071, allocations: 4 kB / 486.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.193e-05/0.1071, allocations: 11.92 kB / 486.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.1071, allocations: 0 / 486.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001885/0.1073, allocations: 67.94 kB / 486.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004263/0.1077, allocations: 372.6 kB / 486.6 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002808/0.108, allocations: 170.8 kB / 486.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002457/0.1083, allocations: 168.7 kB / 487 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.361e-05/0.1083, allocations: 3.938 kB / 487 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007593/0.1091, allocations: 0.522 MB / 487.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.723e-06/0.1091, allocations: 3.938 kB / 487.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009741/0.1101, allocations: 0.6458 MB / 488.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/0.1101, allocations: 55.41 kB / 488.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.1102, allocations: 129.2 kB / 488.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/0.1103, allocations: 49.69 kB / 488.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.252e-05/0.1103, allocations: 88.7 kB / 488.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.1e-05/0.1104, allocations: 75.56 kB / 488.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.522e-05/0.1105, allocations: 53.7 kB / 488.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.1106, allocations: 326.8 kB / 488.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/0.1108, allocations: 92.14 kB / 489 MB, free: 12.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.111, allocations: 155.4 kB / 489.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003421/0.1113, allocations: 229.8 kB / 489.4 MB, free: 12.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1113, allocations: 0 / 489.4 MB, free: 12.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003585/0.1117, allocations: 253.1 kB / 489.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.1117, allocations: 14.42 kB / 489.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.1117, allocations: 0 / 489.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.1118, allocations: 4 kB / 489.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.495e-05/0.1119, allocations: 15.94 kB / 489.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.1119, allocations: 4 kB / 489.7 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000202/0.1121, allocations: 35.95 kB / 489.7 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.1121, allocations: 12 kB / 489.7 MB, free: 11.81 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.0001878/0.1123, allocations: 169.6 kB / 489.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.788e-05/0.1124, allocations: 27.89 kB / 489.9 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.425e-05/0.1124, allocations: 33.62 kB / 489.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1124, allocations: 0 / 489.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.1125, allocations: 4 kB / 489.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001271/0.1126, allocations: 125 kB / 490.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.006e-05/0.1127, allocations: 27.97 kB / 490.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001967/0.1129, allocations: 43.88 kB / 490.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/0.1131, allocations: 87.78 kB / 490.2 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008314/0.1139, allocations: 0.6148 MB / 490.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007806/0.1147, allocations: 0.6938 MB / 491.5 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006104/0.1153, allocations: 0.6952 MB / 492.2 MB, free: 9.238 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.957e-05/0.1154, allocations: 95.27 kB / 492.3 MB, free: 9.145 MB / 366.1 MB Notification: Performance of Backend: time 2.3e-07/0.1154, allocations: 0 / 492.3 MB, free: 9.145 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006251/0.116, allocations: 266.2 kB / 492.6 MB, free: 8.879 MB / 366.1 MB Notification: Performance of SimCode: time 0.0007082/0.1168, allocations: 0.6837 MB / 493.2 MB, free: 8.148 MB / 366.1 MB Notification: Performance of Templates: time 0.006723/0.1235, allocations: 3.778 MB / 497 MB, free: 4.379 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