Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_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_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.009085/0.009085, allocations: 94.06 kB / 15.73 MB, free: 6.051 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.00255/0.00255, allocations: 198.5 kB / 16.68 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.463/1.463, allocations: 205.1 MB / 222.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06571/0.06571, allocations: 14.18 MB / 284.1 MB, free: 13.86 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 64.73 kB / 398 MB, free: 43.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09678/0.09822, allocations: 50.13 MB / 448.1 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002575/0.1008, allocations: 1.442 MB / 449.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.1019, allocations: 0.529 MB / 450.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.415e-05/0.102, allocations: 4 kB / 450.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.258e-05/0.102, allocations: 3.938 kB / 450.1 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.569e-05/0.1021, allocations: 15.84 kB / 450.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002086/0.1023, allocations: 79.83 kB / 450.2 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001951/0.1025, allocations: 179.6 kB / 450.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.944e-05/0.1026, allocations: 7.984 kB / 450.4 MB, free: 9.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000125/0.1027, allocations: 99.73 kB / 450.5 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001354/0.1029, allocations: 91.72 kB / 450.5 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.389e-05/0.1029, allocations: 16 kB / 450.6 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.406e-05/0.1029, allocations: 12 kB / 450.6 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.278e-05/0.103, allocations: 63.83 kB / 450.6 MB, free: 9.637 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.1031, allocations: 71.8 kB / 450.7 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001784/0.1033, allocations: 131.6 kB / 450.8 MB, free: 9.438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1033, allocations: 0 / 450.8 MB, free: 9.438 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1033, allocations: 0 / 450.8 MB, free: 9.438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.1034, allocations: 0 / 450.8 MB, free: 9.438 MB / 334.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.001077/0.1044, allocations: 0.5536 MB / 451.4 MB, free: 8.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.1045, allocations: 12.03 kB / 451.4 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.1046, allocations: 24.88 kB / 451.4 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.1048, allocations: 179.6 kB / 451.6 MB, free: 8.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.1048, allocations: 16.34 kB / 451.6 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.801e-05/0.1049, allocations: 28.36 kB / 451.6 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005955/0.1055, allocations: 381.3 kB / 452 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.1055, allocations: 0 / 452 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.852e-05/0.1055, allocations: 11.97 kB / 452 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.954e-06/0.1056, allocations: 7.938 kB / 452 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002035/0.1058, allocations: 71.88 kB / 452.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004556/0.1062, allocations: 364.6 kB / 452.5 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002712/0.1065, allocations: 174.5 kB / 452.6 MB, free: 7.492 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002518/0.1068, allocations: 160.8 kB / 452.8 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.1068, allocations: 288 / 452.8 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008263/0.1076, allocations: 0.5297 MB / 453.3 MB, free: 6.789 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.402e-06/0.1076, allocations: 0 / 453.3 MB, free: 6.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001008/0.1086, allocations: 0.6511 MB / 454 MB, free: 6.133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.503e-05/0.1087, allocations: 59.39 kB / 454 MB, free: 6.062 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.1088, allocations: 125.8 kB / 454.1 MB, free: 5.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.656e-05/0.1089, allocations: 49.69 kB / 454.2 MB, free: 5.875 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.864e-05/0.109, allocations: 92.69 kB / 454.3 MB, free: 5.781 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.786e-05/0.109, allocations: 75.56 kB / 454.4 MB, free: 5.707 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.227e-05/0.1091, allocations: 53.7 kB / 454.4 MB, free: 5.648 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1093, allocations: 334.8 kB / 454.7 MB, free: 5.312 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.1095, allocations: 84.3 kB / 454.8 MB, free: 5.227 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002172/0.1097, allocations: 155.4 kB / 455 MB, free: 5.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003523/0.11, allocations: 237.6 kB / 455.2 MB, free: 4.801 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.11, allocations: 0 / 455.2 MB, free: 4.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003607/0.1104, allocations: 241.3 kB / 455.4 MB, free: 4.559 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.1104, allocations: 4 kB / 455.4 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1104, allocations: 4 kB / 455.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.1105, allocations: 0 / 455.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.288e-05/0.1106, allocations: 23.88 kB / 455.5 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.1106, allocations: 7.984 kB / 455.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002171/0.1108, allocations: 39.8 kB / 455.5 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.1108, allocations: 12.12 kB / 455.5 MB, free: 4.469 MB / 334.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.0001883/0.111, allocations: 159.7 kB / 455.7 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.754e-05/0.1111, allocations: 31.89 kB / 455.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.518e-05/0.1112, allocations: 33.56 kB / 455.8 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.371e-06/0.1112, allocations: 4 kB / 455.8 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/0.1112, allocations: 4 kB / 455.8 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.1112, allocations: 7.984 kB / 455.8 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002571/0.1115, allocations: 273.4 kB / 456 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1115, allocations: 0 / 456 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.957e-05/0.1115, allocations: 11.94 kB / 456 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.1116, allocations: 4 kB / 456 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.441e-05/0.1116, allocations: 23.95 kB / 456.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.1116, allocations: 0 / 456.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1116, allocations: 0 / 456.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007375/0.1124, allocations: 0.5712 MB / 456.6 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.1125, allocations: 121 kB / 456.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.858e-05/0.1126, allocations: 27.97 kB / 456.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.1128, allocations: 39.94 kB / 456.8 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002178/0.1131, allocations: 91.83 kB / 456.9 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.282e-05/0.1131, allocations: 39.95 kB / 457 MB, free: 2.945 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.821e-05/0.1132, allocations: 102.8 kB / 457.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1132, allocations: 0 / 457.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002737/0.1135, allocations: 75.98 kB / 457.1 MB, free: 2.773 MB / 334.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.0001874/0.1137, allocations: 133.4 kB / 457.3 MB, free: 2.633 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005159/0.1142, allocations: 291.8 kB / 457.5 MB, free: 2.348 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.1142, allocations: 4 kB / 457.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006297/0.1148, allocations: 0.7186 MB / 458.3 MB, free: 1.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.1152, allocations: 51.88 kB / 458.3 MB, free: 1.574 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009463/0.1161, allocations: 447.1 kB / 458.8 MB, free: 1.113 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/0.1164, allocations: 0.7176 MB / 459.5 MB, free: 376 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001133/0.1165, allocations: 33.94 kB / 459.5 MB, free: 340 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.1167, allocations: 39.41 kB / 459.5 MB, free: 300 kB / 334.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1167, allocations: 0 / 459.5 MB, free: 300 kB / 334.1 MB Notification: Performance of Templates: time 0.00688/0.1236, allocations: 3.678 MB / 463.2 MB, free: 12.62 MB / 350.1 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_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_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches