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.001368/0.001368, allocations: 78.64 kB / 19.76 MB, free: 1.875 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.00151/0.00151, allocations: 156.2 kB / 23.01 MB, free: 4.602 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.34/1.34, allocations: 158.6 MB / 184.8 MB, free: 6.191 MB / 174.1 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.07784/0.07784, allocations: 10.65 MB / 247.7 MB, free: 8.605 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.002353/0.002353, allocations: 71.84 kB / 370.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1139, allocations: 52.88 MB / 423.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.0028/0.1167, allocations: 1.428 MB / 425 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001211/0.1179, allocations: 0.5191 MB / 425.5 MB, free: 4.219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.968e-05/0.1179, allocations: 0 / 425.5 MB, free: 4.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.287e-05/0.1179, allocations: 11.88 kB / 425.5 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.565e-05/0.118, allocations: 7.922 kB / 425.5 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.1183, allocations: 79.77 kB / 425.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002169/0.1185, allocations: 179.7 kB / 425.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.211e-05/0.1186, allocations: 4 kB / 425.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/0.1187, allocations: 103.8 kB / 425.9 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.1189, allocations: 79.73 kB / 425.9 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.104e-05/0.1189, allocations: 16 kB / 425.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.599e-05/0.1189, allocations: 12 kB / 426 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.137e-05/0.119, allocations: 59.84 kB / 426 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.1191, allocations: 71.8 kB / 426.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002198/0.1194, allocations: 139.5 kB / 426.2 MB, free: 3.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1194, allocations: 0 / 426.2 MB, free: 3.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1194, allocations: 0 / 426.2 MB, free: 3.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.1194, allocations: 0 / 426.2 MB, free: 3.469 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.001071/0.1204, allocations: 493.8 kB / 426.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.1205, allocations: 8.031 kB / 426.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.1206, allocations: 20.89 kB / 426.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001953/0.1208, allocations: 122.4 kB / 426.9 MB, free: 2.785 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.1208, allocations: 16.36 kB / 426.9 MB, free: 2.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.823e-05/0.1209, allocations: 28.34 kB / 426.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007124/0.1216, allocations: 432.8 kB / 427.3 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.1216, allocations: 0 / 427.3 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.529e-05/0.1216, allocations: 11.98 kB / 427.3 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1216, allocations: 4 kB / 427.3 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001977/0.1218, allocations: 67.94 kB / 427.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000396/0.1222, allocations: 280.4 kB / 427.7 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002184/0.1225, allocations: 90.42 kB / 427.8 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001837/0.1226, allocations: 68.81 kB / 427.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.1227, allocations: 0 / 427.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008778/0.1235, allocations: 0.5877 MB / 428.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.553e-06/0.1235, allocations: 0 / 428.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.00109/0.1246, allocations: 0.6465 MB / 429.1 MB, free: 496 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.318e-05/0.1247, allocations: 55.41 kB / 429.1 MB, free: 428 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/0.1248, allocations: 129.8 kB / 429.2 MB, free: 288 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.556e-05/0.1249, allocations: 45.69 kB / 429.3 MB, free: 236 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.949e-05/0.125, allocations: 92.8 kB / 429.4 MB, free: 140 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.278e-05/0.125, allocations: 71.56 kB / 429.5 MB, free: 68 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.1251, allocations: 57.7 kB / 429.5 MB, free: 4 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.1253, allocations: 326.8 kB / 429.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.1255, allocations: 92.23 kB / 429.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002848/0.1258, allocations: 232.4 kB / 430.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003803/0.1262, allocations: 237.4 kB / 430.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1262, allocations: 3.938 kB / 430.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000393/0.1266, allocations: 249.5 kB / 430.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.1266, allocations: 4 kB / 430.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1266, allocations: 0 / 430.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.843e-05/0.1266, allocations: 7.984 kB / 430.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.1267, allocations: 11.94 kB / 430.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.1267, allocations: 4 kB / 430.7 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.127, allocations: 47.84 kB / 430.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.39e-05/0.127, allocations: 8 kB / 430.7 MB, free: 14.73 MB / 366.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.0002407/0.1272, allocations: 161.7 kB / 430.9 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.108e-05/0.1273, allocations: 23.91 kB / 430.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.994e-05/0.1274, allocations: 41.64 kB / 430.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.1274, allocations: 7.938 kB / 430.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.1274, allocations: 0 / 430.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1274, allocations: 3.938 kB / 430.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.1276, allocations: 189.2 kB / 431.1 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1276, allocations: 4 kB / 431.1 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.817e-05/0.1277, allocations: 11.94 kB / 431.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.1277, allocations: 3.984 kB / 431.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.423e-05/0.1277, allocations: 27.95 kB / 431.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.1277, allocations: 4 kB / 431.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1277, allocations: 0 / 431.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008466/0.1286, allocations: 0.5592 MB / 431.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001498/0.1287, allocations: 39.83 kB / 431.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.458e-05/0.1288, allocations: 27.95 kB / 431.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.129, allocations: 39.94 kB / 431.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002392/0.1293, allocations: 95.81 kB / 431.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-05/0.1293, allocations: 43.95 kB / 432 MB, free: 13.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.683e-05/0.1294, allocations: 98.77 kB / 432.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1294, allocations: 0 / 432.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003017/0.1297, allocations: 75.98 kB / 432.1 MB, free: 13.22 MB / 366.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.0002153/0.1299, allocations: 133.5 kB / 432.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005338/0.1305, allocations: 267.8 kB / 432.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1305, allocations: 0 / 432.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002934/0.1308, allocations: 177.3 kB / 432.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.1311, allocations: 54.23 kB / 432.8 MB, free: 12.6 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.1322, allocations: 438.9 kB / 433.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001063/0.1323, allocations: 103.2 kB / 433.3 MB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000111/0.1324, allocations: 29.94 kB / 433.3 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.1325, allocations: 40.47 kB / 433.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1325, allocations: 4 kB / 433.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of Templates: time 0.008698/0.1412, allocations: 3.975 MB / 437.3 MB, free: 7.992 MB / 366.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/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: 4.946342469076626]