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.006409/0.006409, allocations: 97.69 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.001164/0.001164, allocations: 198.5 kB / 16.68 MB, free: 5.961 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.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07273/0.07273, allocations: 16.78 MB / 307.3 MB, free: 14.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 67.88 kB / 428.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09012/0.09124, allocations: 53.56 MB / 481.6 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002288/0.09357, allocations: 1.439 MB / 483.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008667/0.09445, allocations: 498.8 kB / 483.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.855e-05/0.0945, allocations: 0 / 483.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.809e-05/0.09454, allocations: 3.938 kB / 483.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.129e-05/0.09463, allocations: 11.86 kB / 483.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000184/0.09482, allocations: 83.83 kB / 483.7 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001844/0.09501, allocations: 187.6 kB / 483.9 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.387e-05/0.09508, allocations: 4 kB / 483.9 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.09523, allocations: 95.84 kB / 484 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.09537, allocations: 99.66 kB / 484 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.112e-05/0.09541, allocations: 12 kB / 484.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.714e-05/0.09545, allocations: 16 kB / 484.1 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.468e-05/0.09552, allocations: 55.84 kB / 484.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.09565, allocations: 75.78 kB / 484.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000186/0.09585, allocations: 131.6 kB / 484.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.09586, allocations: 0 / 484.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.09586, allocations: 0 / 484.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.879e-06/0.09588, allocations: 0 / 484.3 MB, free: 0.7305 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.0009204/0.0968, allocations: 0.5497 MB / 484.9 MB, free: 136 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.09684, allocations: 12.03 kB / 484.9 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.235e-05/0.09693, allocations: 20.88 kB / 484.9 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.09709, allocations: 196.1 kB / 485.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.09711, allocations: 8.359 kB / 485.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.358e-05/0.09718, allocations: 28.36 kB / 485.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005386/0.09773, allocations: 381.3 kB / 485.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.09774, allocations: 4 kB / 485.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.229e-05/0.09779, allocations: 11.97 kB / 485.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.0978, allocations: 0 / 485.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.09798, allocations: 71.88 kB / 485.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003815/0.09837, allocations: 364.6 kB / 486 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002532/0.09863, allocations: 170.5 kB / 486.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.09886, allocations: 164.8 kB / 486.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.09888, allocations: 4 kB / 486.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007024/0.09959, allocations: 0.5261 MB / 486.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.583e-06/0.0996, allocations: 0 / 486.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009192/0.1005, allocations: 0.6574 MB / 487.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.1006, allocations: 55.41 kB / 487.5 MB, free: 13.35 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.504e-05/0.1007, allocations: 121.8 kB / 487.6 MB, free: 13.22 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.835e-05/0.1007, allocations: 45.7 kB / 487.7 MB, free: 13.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.572e-05/0.1008, allocations: 92.69 kB / 487.8 MB, free: 13.08 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.631e-05/0.1008, allocations: 67.58 kB / 487.8 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.1009, allocations: 57.7 kB / 487.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.1011, allocations: 334.8 kB / 488.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001514/0.1013, allocations: 92.16 kB / 488.3 MB, free: 12.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002011/0.1015, allocations: 143.5 kB / 488.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003241/0.1018, allocations: 233.8 kB / 488.7 MB, free: 12.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1018, allocations: 4 kB / 488.7 MB, free: 12.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003588/0.1022, allocations: 245.2 kB / 488.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.1022, allocations: 4 kB / 488.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.1022, allocations: 7.938 kB / 488.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.1022, allocations: 0 / 488.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.74e-05/0.1023, allocations: 23.92 kB / 489 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.574e-05/0.1023, allocations: 8 kB / 489 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.1025, allocations: 35.97 kB / 489 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.1026, allocations: 12 kB / 489 MB, free: 11.77 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.0001888/0.1028, allocations: 165.4 kB / 489.2 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.796e-05/0.1028, allocations: 35.89 kB / 489.2 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.195e-05/0.1029, allocations: 29.62 kB / 489.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1029, allocations: 4.047 kB / 489.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1029, allocations: 3.984 kB / 489.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1029, allocations: 3.984 kB / 489.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002234/0.1032, allocations: 269.4 kB / 489.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.1032, allocations: 0 / 489.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.723e-05/0.1032, allocations: 12 kB / 489.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.1032, allocations: 4 kB / 489.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.869e-05/0.1033, allocations: 27.89 kB / 489.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.1033, allocations: 3.984 kB / 489.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1033, allocations: 4 kB / 489.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006811/0.104, allocations: 0.5681 MB / 490.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.1041, allocations: 120.9 kB / 490.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.117e-05/0.1042, allocations: 23.95 kB / 490.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.1044, allocations: 39.95 kB / 490.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001938/0.1046, allocations: 87.83 kB / 490.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.711e-05/0.1046, allocations: 43.95 kB / 490.4 MB, free: 10.24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.131e-05/0.1047, allocations: 102.6 kB / 490.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1047, allocations: 0 / 490.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002607/0.105, allocations: 71.98 kB / 490.6 MB, free: 10.07 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.0001571/0.1051, allocations: 137.4 kB / 490.8 MB, free: 9.934 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004513/0.1056, allocations: 287.8 kB / 491 MB, free: 9.652 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1056, allocations: 4 kB / 491 MB, free: 9.648 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000577/0.1062, allocations: 0.7305 MB / 491.8 MB, free: 8.918 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.1065, allocations: 54.17 kB / 491.8 MB, free: 8.867 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008662/0.1074, allocations: 435 kB / 492.2 MB, free: 8.418 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.1077, allocations: 0.7175 MB / 493 MB, free: 7.672 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.1078, allocations: 33.94 kB / 493 MB, free: 7.637 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.1079, allocations: 43.41 kB / 493 MB, free: 7.594 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1079, allocations: 0 / 493 MB, free: 7.594 MB / 366.1 MB Notification: Performance of Templates: time 0.00637/0.1143, allocations: 3.683 MB / 496.7 MB, free: 3.922 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