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.007547/0.007547, allocations: 104.3 kB / 15.73 MB, free: 5.953 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.002152/0.002152, allocations: 189.8 kB / 16.67 MB, free: 5.871 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.231/1.231, allocations: 222.9 MB / 240.4 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07264/0.07264, allocations: 16.77 MB / 307.3 MB, free: 14.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001061, allocations: 64.12 kB / 428.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08979/0.09087, allocations: 53.56 MB / 481.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002384/0.0933, allocations: 1.443 MB / 483.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007932/0.0941, allocations: 494.8 kB / 483.6 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.995e-05/0.09416, allocations: 4 kB / 483.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.966e-05/0.09419, allocations: 7.922 kB / 483.6 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.885e-05/0.09426, allocations: 7.875 kB / 483.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001768/0.09445, allocations: 83.81 kB / 483.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001674/0.09462, allocations: 191.6 kB / 483.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.109e-05/0.09467, allocations: 4 kB / 483.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001221/0.09479, allocations: 91.8 kB / 483.9 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.09491, allocations: 95.7 kB / 484 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.717e-05/0.09495, allocations: 12 kB / 484 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.181e-05/0.09499, allocations: 16 kB / 484.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.266e-05/0.09505, allocations: 55.8 kB / 484.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.09517, allocations: 79.78 kB / 484.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001489/0.09532, allocations: 135.6 kB / 484.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.09533, allocations: 0 / 484.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.09534, allocations: 0 / 484.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.09535, allocations: 0 / 484.3 MB, free: 0.7578 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.0009398/0.09629, allocations: 0.5535 MB / 484.9 MB, free: 160 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.09633, allocations: 12.03 kB / 484.9 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.998e-05/0.09641, allocations: 20.88 kB / 484.9 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.09655, allocations: 188.2 kB / 485.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.09658, allocations: 8.359 kB / 485.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.622e-05/0.09664, allocations: 28.36 kB / 485.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005209/0.09717, allocations: 381.4 kB / 485.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.09718, allocations: 3.938 kB / 485.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.506e-05/0.09723, allocations: 11.98 kB / 485.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.09724, allocations: 0 / 485.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001725/0.09742, allocations: 67.94 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003793/0.0978, allocations: 368.6 kB / 485.9 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002462/0.09806, allocations: 174.6 kB / 486.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002167/0.09828, allocations: 160.8 kB / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.029e-05/0.0983, allocations: 4 kB / 486.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000692/0.09899, allocations: 0.526 MB / 486.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.412e-06/0.09901, allocations: 0 / 486.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008971/0.09991, allocations: 0.6458 MB / 487.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.714e-05/0.09995, allocations: 63.41 kB / 487.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.467e-05/0.1, allocations: 125.8 kB / 487.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.111e-05/0.1001, allocations: 45.64 kB / 487.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.675e-05/0.1001, allocations: 92.69 kB / 487.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.912e-05/0.1002, allocations: 75.56 kB / 487.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.1003, allocations: 57.69 kB / 487.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1005, allocations: 330.8 kB / 488.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/0.1006, allocations: 92.16 kB / 488.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.1008, allocations: 151.4 kB / 488.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/0.1012, allocations: 225.8 kB / 488.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1012, allocations: 4 kB / 488.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003329/0.1016, allocations: 253.1 kB / 488.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.1016, allocations: 7.938 kB / 488.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1016, allocations: 4 kB / 488.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.1016, allocations: 0 / 488.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.574e-05/0.1017, allocations: 23.92 kB / 489 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.1017, allocations: 0 / 489 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001945/0.1019, allocations: 31.97 kB / 489 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.1019, allocations: 16.12 kB / 489 MB, free: 11.8 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.0001726/0.1021, allocations: 157.5 kB / 489.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.266e-05/0.1022, allocations: 31.89 kB / 489.2 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.839e-05/0.1023, allocations: 29.62 kB / 489.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.1023, allocations: 4 kB / 489.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1023, allocations: 4 kB / 489.2 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.1023, allocations: 3.984 kB / 489.2 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002233/0.1025, allocations: 277.4 kB / 489.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1025, allocations: 0 / 489.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.967e-05/0.1026, allocations: 7.938 kB / 489.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.1026, allocations: 4.047 kB / 489.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.151e-05/0.1026, allocations: 35.92 kB / 489.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1026, allocations: 0 / 489.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.1026, allocations: 0 / 489.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007038/0.1033, allocations: 0.572 MB / 490.1 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.1035, allocations: 116.9 kB / 490.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.824e-05/0.1035, allocations: 23.95 kB / 490.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.1037, allocations: 39.95 kB / 490.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/0.1039, allocations: 87.77 kB / 490.4 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.922e-05/0.104, allocations: 47.95 kB / 490.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.292e-05/0.104, allocations: 97.64 kB / 490.5 MB, free: 10.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.104, allocations: 0 / 490.5 MB, free: 10.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002579/0.1043, allocations: 79.92 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.0001271/0.1044, allocations: 133.5 kB / 490.7 MB, free: 9.965 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004405/0.1049, allocations: 291.8 kB / 491 MB, free: 9.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.1049, allocations: 4 kB / 491 MB, free: 9.676 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005555/0.1055, allocations: 0.738 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.0002664/0.1057, allocations: 51.89 kB / 491.8 MB, free: 8.887 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008925/0.1066, allocations: 435.2 kB / 492.2 MB, free: 8.438 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.1069, allocations: 0.7137 MB / 493 MB, free: 7.695 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.107, allocations: 33.94 kB / 493 MB, free: 7.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.1072, allocations: 39.41 kB / 493 MB, free: 7.621 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1072, allocations: 0 / 493 MB, free: 7.621 MB / 366.1 MB Notification: Performance of Templates: time 0.006234/0.1134, allocations: 3.688 MB / 496.7 MB, free: 3.949 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches