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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001916/0.001916, allocations: 213 kB / 22.24 MB, free: 4.855 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.576/1.576, allocations: 207.7 MB / 233.1 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.073/0.073, allocations: 14.39 MB / 299.7 MB, free: 7.254 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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=500,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=500,variableFilter="Ntap|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002311/0.002311, allocations: 71.91 kB / 422.7 MB, free: 36.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08963/0.09194, allocations: 52.91 MB / 475.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002678/0.09462, allocations: 1.421 MB / 477.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.09566, allocations: 0.5112 MB / 477.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.458e-05/0.0957, allocations: 0 / 477.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.505e-05/0.09573, allocations: 7.938 kB / 477.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.826e-05/0.09581, allocations: 19.84 kB / 477.6 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002267/0.09604, allocations: 75.78 kB / 477.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002218/0.09626, allocations: 183.6 kB / 477.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.898e-05/0.09631, allocations: 7.984 kB / 477.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001527/0.09646, allocations: 99.78 kB / 478 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001274/0.09659, allocations: 75.75 kB / 478 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.778e-05/0.09664, allocations: 16 kB / 478.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.635e-05/0.09668, allocations: 16 kB / 478.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.2e-05/0.09674, allocations: 51.91 kB / 478.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.09687, allocations: 75.73 kB / 478.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001982/0.09707, allocations: 131.6 kB / 478.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.09708, allocations: 0 / 478.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.09708, allocations: 0 / 478.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.09708, allocations: 0 / 478.3 MB, free: 13.28 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.001027/0.09811, allocations: 0.4899 MB / 478.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.09815, allocations: 12.03 kB / 478.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.09825, allocations: 28.81 kB / 478.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.09837, allocations: 110.5 kB / 479 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/0.0984, allocations: 16.3 kB / 479 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.366e-05/0.09847, allocations: 32.34 kB / 479 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006591/0.09913, allocations: 432.8 kB / 479.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.09914, allocations: 0 / 479.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.676e-05/0.09919, allocations: 15.97 kB / 479.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.09919, allocations: 0 / 479.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001957/0.09939, allocations: 63.94 kB / 479.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000386/0.09977, allocations: 288.4 kB / 479.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002212/0.1, allocations: 82.45 kB / 479.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001916/0.1002, allocations: 72.8 kB / 479.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.159e-05/0.1002, allocations: 0 / 479.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008612/0.1011, allocations: 0.5724 MB / 480.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.533e-06/0.1011, allocations: 4 kB / 480.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001046/0.1021, allocations: 0.6426 MB / 481.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/0.1022, allocations: 55.41 kB / 481.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.1023, allocations: 141.3 kB / 481.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.4e-05/0.1023, allocations: 45.69 kB / 481.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.192e-05/0.1024, allocations: 88.8 kB / 481.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.087e-05/0.1025, allocations: 83.48 kB / 481.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.63e-05/0.1026, allocations: 53.7 kB / 481.6 MB, free: 9.801 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002152/0.1028, allocations: 326.8 kB / 481.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.1029, allocations: 92.28 kB / 482 MB, free: 9.379 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002549/0.1032, allocations: 232.5 kB / 482.3 MB, free: 9.109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003686/0.1036, allocations: 229.4 kB / 482.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.1036, allocations: 7.875 kB / 482.5 MB, free: 8.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003987/0.104, allocations: 249.4 kB / 482.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.104, allocations: 4 kB / 482.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.104, allocations: 0 / 482.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.104, allocations: 8.125 kB / 482.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.879e-05/0.1041, allocations: 15.94 kB / 482.8 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.1041, allocations: 4 kB / 482.8 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.1043, allocations: 43.84 kB / 482.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.334e-05/0.1044, allocations: 12.05 kB / 482.8 MB, free: 8.523 MB / 350.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.0002183/0.1046, allocations: 168.1 kB / 483 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.16e-05/0.1046, allocations: 31.89 kB / 483 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.258e-05/0.1047, allocations: 33.62 kB / 483 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.1047, allocations: 4 kB / 483 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.1047, allocations: 0 / 483 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1047, allocations: 0 / 483 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002258/0.105, allocations: 193.1 kB / 483.2 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.105, allocations: 3.938 kB / 483.2 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.052e-05/0.105, allocations: 7.984 kB / 483.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.105, allocations: 0 / 483.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.352e-05/0.105, allocations: 27.95 kB / 483.3 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.105, allocations: 8 kB / 483.3 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.105, allocations: 0 / 483.3 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007913/0.1058, allocations: 0.5592 MB / 483.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.106, allocations: 43.81 kB / 483.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.743e-05/0.1061, allocations: 23.97 kB / 483.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/0.1063, allocations: 39.94 kB / 483.9 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002217/0.1065, allocations: 91.81 kB / 484 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.797e-05/0.1066, allocations: 39.95 kB / 484.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.426e-05/0.1067, allocations: 99.27 kB / 484.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1067, allocations: 4 kB / 484.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003002/0.107, allocations: 79.97 kB / 484.3 MB, free: 7.02 MB / 350.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.0001762/0.1071, allocations: 129.5 kB / 484.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005384/0.1077, allocations: 267.8 kB / 484.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1077, allocations: 0 / 484.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002998/0.108, allocations: 173 kB / 484.8 MB, free: 6.457 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/0.1083, allocations: 55.81 kB / 484.9 MB, free: 6.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.1094, allocations: 439.3 kB / 485.3 MB, free: 5.945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.1095, allocations: 111 kB / 485.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001334/0.1096, allocations: 29.94 kB / 485.4 MB, free: 5.789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.1097, allocations: 43.39 kB / 485.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of SimCode: time 8.61e-07/0.1097, allocations: 0 / 485.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of Templates: time 0.008853/0.1186, allocations: 4.019 MB / 489.5 MB, free: 1.758 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.020874474197626]