Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_symb_jac_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.001229/0.001229, allocations: 72.95 kB / 20.73 MB, free: 3.762 MB / 18.57 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.00133/0.00133, allocations: 173 kB / 24.15 MB, free: 348 kB / 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 0.8395/0.8395, allocations: 158.6 MB / 186 MB, free: 2.57 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.04826/0.04826, allocations: 10.65 MB / 249 MB, free: 4.336 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_symb_jac_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_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 271 MB, free: 14.32 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.484e-05/1.594e-05, allocations: 6.312 kB / 271 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001736/0.001752, allocations: 1.5 MB / 272.5 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007175/0.00247, allocations: 0.5308 MB / 273 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.078e-05/0.002501, allocations: 0 / 273 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.682e-05/0.002517, allocations: 3.938 kB / 273 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.577e-05/0.002593, allocations: 19.86 kB / 273.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001485/0.002742, allocations: 79.81 kB / 273.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001272/0.002869, allocations: 187.6 kB / 273.3 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.721e-05/0.002906, allocations: 7.984 kB / 273.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001208/0.003027, allocations: 131.7 kB / 273.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.394e-05/0.003111, allocations: 71.8 kB / 273.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.657e-05/0.003138, allocations: 12 kB / 273.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.827e-05/0.003156, allocations: 12 kB / 273.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.847e-05/0.003194, allocations: 55.89 kB / 273.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.654e-05/0.003251, allocations: 71.83 kB / 273.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001251/0.003376, allocations: 171.5 kB / 273.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.003378, allocations: 0 / 273.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.003378, allocations: 0 / 273.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.106e-06/0.003381, allocations: 0 / 273.8 MB, free: 11.45 MB / 266.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.0005755/0.003957, allocations: 440.3 kB / 274.3 MB, free: 11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.837e-05/0.003985, allocations: 12.03 kB / 274.3 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.516e-05/0.00405, allocations: 44.88 kB / 274.3 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.083e-05/0.004121, allocations: 121.7 kB / 274.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.004133, allocations: 12.36 kB / 274.5 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/0.00417, allocations: 32.3 kB / 274.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002888/0.004459, allocations: 417 kB / 274.9 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.152e-06/0.004465, allocations: 4.188 kB / 274.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.237e-05/0.004488, allocations: 8.359 kB / 274.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.004492, allocations: 3.938 kB / 274.9 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.96e-05/0.004561, allocations: 63.89 kB / 275 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001656/0.004727, allocations: 192.2 kB / 275.2 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.359e-05/0.00481, allocations: 74.55 kB / 275.2 MB, free: 9.965 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.08e-05/0.004881, allocations: 64.83 kB / 275.3 MB, free: 9.898 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.072e-06/0.004887, allocations: 0 / 275.3 MB, free: 9.898 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003647/0.005252, allocations: 0.5333 MB / 275.8 MB, free: 9.34 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.022e-06/0.005253, allocations: 0 / 275.8 MB, free: 9.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0003012/0.005554, allocations: 382.1 kB / 276.2 MB, free: 8.961 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.916e-05/0.005583, allocations: 59.34 kB / 276.3 MB, free: 8.891 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.946e-05/0.005643, allocations: 130.7 kB / 276.4 MB, free: 8.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.005669, allocations: 45.69 kB / 276.4 MB, free: 8.699 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.662e-05/0.005695, allocations: 84.8 kB / 276.5 MB, free: 8.613 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.221e-05/0.005737, allocations: 83.47 kB / 276.6 MB, free: 8.531 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.218e-05/0.00579, allocations: 53.67 kB / 276.7 MB, free: 8.473 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.924e-05/0.005859, allocations: 330.8 kB / 277 MB, free: 8.141 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.888e-05/0.005898, allocations: 36.31 kB / 277 MB, free: 8.102 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.892e-05/0.005987, allocations: 188.4 kB / 277.2 MB, free: 7.875 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.006094, allocations: 137.4 kB / 277.3 MB, free: 7.723 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.006096, allocations: 0 / 277.3 MB, free: 7.723 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001378/0.006234, allocations: 169.5 kB / 277.5 MB, free: 7.551 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/0.006244, allocations: 12.12 kB / 277.5 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.00625, allocations: 7.922 kB / 277.5 MB, free: 7.531 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.347e-06/0.00626, allocations: 4 kB / 277.5 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.779e-05/0.006317, allocations: 23.92 kB / 277.5 MB, free: 7.504 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.006322, allocations: 3.938 kB / 277.6 MB, free: 7.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.706e-05/0.006409, allocations: 39.92 kB / 277.6 MB, free: 7.461 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.006419, allocations: 4 kB / 277.6 MB, free: 7.457 MB / 266.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.0003248/0.006744, allocations: 157.6 kB / 277.7 MB, free: 7.293 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.421e-05/0.006788, allocations: 55.94 kB / 277.8 MB, free: 7.238 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.427e-05/0.006822, allocations: 33.56 kB / 277.8 MB, free: 7.203 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/0.006825, allocations: 7.938 kB / 277.8 MB, free: 7.195 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.006826, allocations: 48 / 277.8 MB, free: 7.195 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.006831, allocations: 7.969 kB / 277.9 MB, free: 7.188 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.998e-05/0.006931, allocations: 113.8 kB / 278 MB, free: 7.059 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.006932, allocations: 4 kB / 278 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.686e-05/0.006949, allocations: 7.938 kB / 278 MB, free: 7.047 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.006951, allocations: 8 kB / 278 MB, free: 7.039 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.132e-05/0.006972, allocations: 23.95 kB / 278 MB, free: 7.016 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.006973, allocations: 0 / 278 MB, free: 7.016 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.006974, allocations: 3.938 kB / 278 MB, free: 7.012 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004773/0.007452, allocations: 1.209 MB / 279.2 MB, free: 5.738 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.125e-05/0.007523, allocations: 27.88 kB / 279.2 MB, free: 5.711 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.466e-05/0.007567, allocations: 23.97 kB / 279.3 MB, free: 5.688 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.936e-05/0.007647, allocations: 31.95 kB / 279.3 MB, free: 5.656 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.007763, allocations: 83.8 kB / 279.4 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.526e-05/0.007788, allocations: 35.95 kB / 279.4 MB, free: 5.539 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.732e-05/0.007806, allocations: 25.34 kB / 279.4 MB, free: 5.512 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007806, allocations: 0 / 279.4 MB, free: 5.512 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002061/0.008012, allocations: 75.98 kB / 279.5 MB, free: 5.438 MB / 266.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 7.725e-05/0.008089, allocations: 110.3 kB / 279.6 MB, free: 5.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001831/0.008272, allocations: 196.7 kB / 279.8 MB, free: 5.125 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.008276, allocations: 7.938 kB / 279.8 MB, free: 5.117 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.008395, allocations: 152.7 kB / 280 MB, free: 4.965 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.008524, allocations: 64.05 kB / 280 MB, free: 4.902 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005155/0.009039, allocations: 0.5623 MB / 280.6 MB, free: 4.305 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.35e-05/0.009073, allocations: 81.3 kB / 280.7 MB, free: 4.203 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.51e-05/0.009138, allocations: 29.94 kB / 280.7 MB, free: 4.176 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.00928, allocations: 111.3 kB / 280.8 MB, free: 4.066 MB / 266.7 MB Notification: Performance of SimCode: time 4.31e-07/0.009281, allocations: 0 / 280.8 MB, free: 4.066 MB / 266.7 MB Notification: Performance of Templates: time 0.004901/0.01418, allocations: 4.121 MB / 284.9 MB, free: 15.93 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile [Timeout 660] (rm -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.555986891966313]