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.002648/0.002648, allocations: 93.47 kB / 19.44 MB, free: 336 kB / 13.93 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.0034/0.0034, allocations: 169.2 kB / 22.76 MB, free: 1.664 MB / 18.57 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.324/1.324, allocations: 158.6 MB / 184.6 MB, free: 2.898 MB / 170.7 MB " [Timeout remaining time 179] 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.07415/0.07415, allocations: 10.65 MB / 247.5 MB, free: 4.535 MB / 234.7 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 the simulation runtime does not accept it 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: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 318 MB, free: 40.69 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.096e-05/2.249e-05, allocations: 3.734 kB / 318 MB, free: 40.68 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.00189/0.001912, allocations: 1.437 MB / 319.4 MB, free: 39.25 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007717/0.002684, allocations: 0.5192 MB / 320 MB, free: 38.72 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.833e-05/0.002722, allocations: 0 / 320 MB, free: 38.72 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.417e-05/0.002736, allocations: 3.938 kB / 320 MB, free: 38.71 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.684e-05/0.002813, allocations: 23.84 kB / 320 MB, free: 38.69 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001637/0.002977, allocations: 75.83 kB / 320.1 MB, free: 38.62 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.003099, allocations: 187.6 kB / 320.2 MB, free: 38.43 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.619e-05/0.003135, allocations: 4 kB / 320.2 MB, free: 38.43 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.003263, allocations: 135.7 kB / 320.4 MB, free: 38.3 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.623e-05/0.00336, allocations: 75.77 kB / 320.4 MB, free: 38.22 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.817e-05/0.003408, allocations: 12 kB / 320.5 MB, free: 38.21 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.182e-05/0.00344, allocations: 12 kB / 320.5 MB, free: 38.2 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.491e-05/0.003485, allocations: 59.83 kB / 320.5 MB, free: 38.14 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.609e-05/0.003561, allocations: 67.84 kB / 320.6 MB, free: 38.07 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001549/0.003716, allocations: 167.5 kB / 320.8 MB, free: 37.91 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.003718, allocations: 0 / 320.8 MB, free: 37.91 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.003718, allocations: 0 / 320.8 MB, free: 37.91 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.003722, allocations: 0 / 320.8 MB, free: 37.91 MB / 282.7 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.0007398/0.004462, allocations: 0.5676 MB / 321.3 MB, free: 37.31 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.706e-05/0.004489, allocations: 12.03 kB / 321.3 MB, free: 37.3 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.004608, allocations: 40.86 kB / 321.4 MB, free: 37.26 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.907e-05/0.004687, allocations: 132.9 kB / 321.5 MB, free: 37.1 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.004704, allocations: 13.23 kB / 321.5 MB, free: 37.09 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.28e-05/0.004757, allocations: 28.36 kB / 321.5 MB, free: 37.06 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004838/0.005241, allocations: 0.4893 MB / 322 MB, free: 36.55 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.005249, allocations: 192 / 322 MB, free: 36.55 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.169e-05/0.005291, allocations: 12.36 kB / 322.1 MB, free: 36.54 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.005295, allocations: 7.938 kB / 322.1 MB, free: 36.54 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001959/0.005491, allocations: 79.94 kB / 322.1 MB, free: 36.46 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002559/0.005747, allocations: 335.6 kB / 322.5 MB, free: 36.09 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002109/0.005958, allocations: 171 kB / 322.6 MB, free: 35.91 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001831/0.006141, allocations: 155.6 kB / 322.8 MB, free: 35.76 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.006155, allocations: 0 / 322.8 MB, free: 35.76 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000564/0.006719, allocations: 0.5995 MB / 323.4 MB, free: 35.13 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 1.383e-06/0.00672, allocations: 0 / 323.4 MB, free: 35.13 MB / 282.7 MB Notification: Performance of matching and sorting (n=30): time 0.0008065/0.007526, allocations: 0.6884 MB / 324.1 MB, free: 34.44 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.281e-05/0.007549, allocations: 55.41 kB / 324.1 MB, free: 34.38 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.576e-05/0.007625, allocations: 192.4 kB / 324.3 MB, free: 34.17 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/0.007656, allocations: 45.69 kB / 324.4 MB, free: 34.12 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.283e-05/0.007689, allocations: 143.5 kB / 324.5 MB, free: 33.98 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.101e-05/0.00773, allocations: 67.62 kB / 324.6 MB, free: 33.91 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.272e-05/0.007802, allocations: 63.36 kB / 324.6 MB, free: 33.84 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.614e-05/0.007859, allocations: 0.5001 MB / 325.1 MB, free: 33.33 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.007975, allocations: 80.3 kB / 325.2 MB, free: 33.25 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/0.008132, allocations: 258 kB / 325.5 MB, free: 32.95 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000199/0.008331, allocations: 185 kB / 325.6 MB, free: 32.74 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.008334, allocations: 3.984 kB / 325.6 MB, free: 32.74 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000299/0.008633, allocations: 249.3 kB / 325.9 MB, free: 32.49 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/0.008642, allocations: 8.125 kB / 325.9 MB, free: 32.48 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.008646, allocations: 7.938 kB / 325.9 MB, free: 32.47 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.008658, allocations: 4 kB / 325.9 MB, free: 32.47 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.35e-05/0.008742, allocations: 27.86 kB / 325.9 MB, free: 32.44 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.543e-06/0.008748, allocations: 4 kB / 325.9 MB, free: 32.44 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001772/0.008926, allocations: 31.91 kB / 326 MB, free: 32.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.008945, allocations: 12 kB / 326 MB, free: 32.39 MB / 282.7 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.0001357/0.009081, allocations: 211 kB / 326.2 MB, free: 32.18 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.811e-05/0.009149, allocations: 55.86 kB / 326.2 MB, free: 32.12 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.768e-05/0.009237, allocations: 33.62 kB / 326.3 MB, free: 32.1 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.00924, allocations: 4.031 kB / 326.3 MB, free: 32.09 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.009244, allocations: 7.984 kB / 326.3 MB, free: 32.09 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.009248, allocations: 0 / 326.3 MB, free: 32.09 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.00938, allocations: 196.5 kB / 326.5 MB, free: 31.86 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.009381, allocations: 0 / 326.5 MB, free: 31.86 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.509e-05/0.009406, allocations: 11.94 kB / 326.5 MB, free: 31.85 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.009408, allocations: 4 kB / 326.5 MB, free: 31.84 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.264e-05/0.00944, allocations: 27.89 kB / 326.5 MB, free: 31.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.083e-06/0.009443, allocations: 3.984 kB / 326.5 MB, free: 31.81 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.009443, allocations: 0 / 326.5 MB, free: 31.81 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000568/0.01001, allocations: 0.6019 MB / 327.1 MB, free: 31.19 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.01014, allocations: 43.83 kB / 327.2 MB, free: 31.14 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.775e-05/0.01021, allocations: 27.89 kB / 327.2 MB, free: 31.12 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.01039, allocations: 35.95 kB / 327.2 MB, free: 31.08 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001876/0.01057, allocations: 87.8 kB / 327.3 MB, free: 31 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.187e-05/0.01062, allocations: 43.95 kB / 327.4 MB, free: 30.95 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.338e-05/0.01066, allocations: 143.2 kB / 327.5 MB, free: 30.81 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01066, allocations: 3.938 kB / 327.5 MB, free: 30.81 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002542/0.01091, allocations: 79.98 kB / 327.6 MB, free: 30.73 MB / 282.7 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.0001243/0.01104, allocations: 121.2 kB / 327.7 MB, free: 30.61 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004378/0.01148, allocations: 295.4 kB / 328 MB, free: 30.31 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.01148, allocations: 0 / 328 MB, free: 30.31 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002645/0.01174, allocations: 299.4 kB / 328.3 MB, free: 30.02 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.01202, allocations: 62.52 kB / 328.3 MB, free: 29.96 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007484/0.01277, allocations: 426.3 kB / 328.8 MB, free: 29.52 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.97e-05/0.01282, allocations: 107.2 kB / 328.9 MB, free: 29.39 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.675e-05/0.01292, allocations: 25.95 kB / 328.9 MB, free: 29.37 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.01305, allocations: 44.45 kB / 328.9 MB, free: 29.32 MB / 282.7 MB Notification: Performance of SimCode: time 4.41e-07/0.01305, allocations: 0 / 328.9 MB, free: 29.32 MB / 282.7 MB Notification: Performance of Templates: time 0.006467/0.01951, allocations: 3.97 MB / 332.9 MB, free: 25.4 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) [Timeout 240] 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] "" Variables in the reference:Ntap,actionSel,directAction,lockedStart,reverseAction,runningStart,stateStart,t1st,tNext,tap,tapMax,tapMin,tapStart,time Variables in the result:Ntap,actionSel,directAction,lockedStart,reverseAction,runningStart,stateStart,t1st,tNext,tap,tapMax,tapMin,tapStart,time [Calling sys.exit(0), Time elapsed: 4.483142458950169]