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.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.0009982/0.0009982, allocations: 80.48 kB / 19.93 MB, free: 4.633 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.000903/0.000903, allocations: 173.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8604/0.8604, allocations: 177.1 MB / 203.5 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.04344/0.04344, allocations: 12.52 MB / 272.5 MB, free: 1.113 MB / 250.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_dev_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_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 405.2 MB, free: 7.484 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.754e-05/2.908e-05, allocations: 2.281 kB / 405.2 MB, free: 7.48 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002072/0.002101, allocations: 1.465 MB / 406.7 MB, free: 6.004 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.000866/0.002967, allocations: 0.4949 MB / 407.2 MB, free: 5.504 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.408e-05/0.003011, allocations: 0 / 407.2 MB, free: 5.504 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 2.074e-05/0.003032, allocations: 3.938 kB / 407.2 MB, free: 5.5 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 8.813e-05/0.00312, allocations: 19.86 kB / 407.2 MB, free: 5.48 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001927/0.003313, allocations: 75.81 kB / 407.3 MB, free: 5.406 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001604/0.003473, allocations: 191.6 kB / 407.5 MB, free: 5.219 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.633e-05/0.003529, allocations: 4 kB / 407.5 MB, free: 5.215 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001474/0.003677, allocations: 131.8 kB / 407.6 MB, free: 5.086 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.683e-05/0.003774, allocations: 75.77 kB / 407.7 MB, free: 5.012 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.633e-05/0.00381, allocations: 12 kB / 407.7 MB, free: 5 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.179e-05/0.003832, allocations: 16 kB / 407.7 MB, free: 4.984 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.24e-05/0.003874, allocations: 51.89 kB / 407.8 MB, free: 4.934 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.766e-05/0.003952, allocations: 75.78 kB / 407.8 MB, free: 4.859 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001753/0.004127, allocations: 159.6 kB / 408 MB, free: 4.703 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.275e-06/0.004129, allocations: 0 / 408 MB, free: 4.703 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.82e-07/0.00413, allocations: 4 kB / 408 MB, free: 4.699 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.004134, allocations: 0 / 408 MB, free: 4.699 MB / 330.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.0006905/0.004825, allocations: 489.8 kB / 408.5 MB, free: 4.191 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.004863, allocations: 8.031 kB / 408.5 MB, free: 4.184 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.008e-05/0.004943, allocations: 24.88 kB / 408.5 MB, free: 4.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.005049, allocations: 117.7 kB / 408.6 MB, free: 4.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.005068, allocations: 16.34 kB / 408.6 MB, free: 4.004 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.257e-05/0.00511, allocations: 24.36 kB / 408.7 MB, free: 3.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004267/0.005537, allocations: 429 kB / 409.1 MB, free: 3.543 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.005545, allocations: 192 / 409.1 MB, free: 3.543 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.901e-05/0.005574, allocations: 8.359 kB / 409.1 MB, free: 3.535 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.00558, allocations: 3.938 kB / 409.1 MB, free: 3.531 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001323/0.005712, allocations: 67.94 kB / 409.2 MB, free: 3.465 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006129/0.006325, allocations: 284.3 kB / 409.4 MB, free: 3.156 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001615/0.006486, allocations: 86.55 kB / 409.5 MB, free: 3.062 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001301/0.006616, allocations: 72.8 kB / 409.6 MB, free: 2.988 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.134e-05/0.006628, allocations: 0 / 409.6 MB, free: 2.988 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005127/0.00714, allocations: 0.5796 MB / 410.2 MB, free: 2.387 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 1.563e-06/0.007142, allocations: 4 kB / 410.2 MB, free: 2.383 MB / 330.7 MB Notification: Performance of matching and sorting (n=30): time 0.000685/0.007827, allocations: 0.6341 MB / 410.8 MB, free: 1.742 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.007867, allocations: 59.39 kB / 410.9 MB, free: 1.672 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.198e-05/0.007949, allocations: 133.8 kB / 411 MB, free: 1.531 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.00798, allocations: 45.69 kB / 411.1 MB, free: 1.48 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.431e-05/0.008025, allocations: 88.78 kB / 411.1 MB, free: 1.387 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.578e-05/0.008071, allocations: 71.58 kB / 411.2 MB, free: 1.316 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.477e-05/0.008135, allocations: 57.56 kB / 411.3 MB, free: 1.254 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.251e-05/0.008228, allocations: 334.8 kB / 411.6 MB, free: 0.918 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.008329, allocations: 84.3 kB / 411.7 MB, free: 0.832 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001615/0.00849, allocations: 236.5 kB / 411.9 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002572/0.008748, allocations: 232.3 kB / 412.1 MB, free: 324 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.00875, allocations: 0 / 412.1 MB, free: 324 kB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002475/0.008998, allocations: 249.1 kB / 412.4 MB, free: 68 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.009014, allocations: 8 kB / 412.4 MB, free: 60 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.00902, allocations: 0 / 412.4 MB, free: 60 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.009035, allocations: 8.125 kB / 412.4 MB, free: 52 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.117e-05/0.009106, allocations: 15.94 kB / 412.4 MB, free: 36 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.587e-06/0.009114, allocations: 7.984 kB / 412.4 MB, free: 28 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.169/0.1781, allocations: 32.98 kB / 412.4 MB, free: 22.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.885e-05/0.1782, allocations: 11.09 kB / 412.5 MB, free: 22.41 MB / 330.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.0002217/0.1784, allocations: 154.8 kB / 412.6 MB, free: 22.29 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.414e-05/0.1784, allocations: 33.5 kB / 412.6 MB, free: 22.29 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.701e-05/0.1785, allocations: 34.59 kB / 412.7 MB, free: 22.29 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1785, allocations: 3.125 kB / 412.7 MB, free: 22.29 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1785, allocations: 6.594 kB / 412.7 MB, free: 22.29 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.1785, allocations: 3.078 kB / 412.7 MB, free: 22.29 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001399/0.1786, allocations: 185.1 kB / 412.9 MB, free: 22.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1787, allocations: 0 / 412.9 MB, free: 22.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.836e-05/0.1787, allocations: 15.98 kB / 412.9 MB, free: 22.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.1787, allocations: 2.406 kB / 412.9 MB, free: 22.16 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.64e-05/0.1787, allocations: 23.58 kB / 412.9 MB, free: 22.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.1787, allocations: 1.312 kB / 412.9 MB, free: 22.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1787, allocations: 5.406 kB / 412.9 MB, free: 22.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005254/0.1792, allocations: 0.5524 MB / 413.5 MB, free: 22.1 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.1793, allocations: 41.36 kB / 413.5 MB, free: 22.1 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.761e-05/0.1794, allocations: 22.98 kB / 413.5 MB, free: 22.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.1795, allocations: 39.88 kB / 413.6 MB, free: 22.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/0.1797, allocations: 87.41 kB / 413.7 MB, free: 22.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-05/0.1797, allocations: 45.06 kB / 413.7 MB, free: 22.07 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.447e-05/0.1798, allocations: 96.38 kB / 413.8 MB, free: 21.99 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1798, allocations: 3.75 kB / 413.8 MB, free: 21.99 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002007/0.18, allocations: 74.45 kB / 413.9 MB, free: 21.98 MB / 330.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.0001094/0.1801, allocations: 131.9 kB / 414 MB, free: 21.88 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003574/0.1804, allocations: 275.7 kB / 414.3 MB, free: 21.8 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1804, allocations: 3.812 kB / 414.3 MB, free: 21.8 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.1806, allocations: 172.6 kB / 414.4 MB, free: 21.75 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.1808, allocations: 46 kB / 414.5 MB, free: 21.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006497/0.1815, allocations: 457 kB / 414.9 MB, free: 21.52 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.999e-05/0.1815, allocations: 103.6 kB / 415 MB, free: 21.44 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.299e-05/0.1816, allocations: 50.66 kB / 415.1 MB, free: 21.42 MB / 330.7 MB Notification: Performance of SimCode: time 6.01e-07/0.1816, allocations: 0 / 415.1 MB, free: 21.42 MB / 330.7 MB Notification: Performance of Templates: time 0.003808/0.1854, allocations: 2.626 MB / 417.7 MB, free: 21.21 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.421737689524889]