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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 106.8 kB / 16.4 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001868/0.001868, allocations: 191.7 kB / 19.36 MB, free: 3.727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 222.9 MB / 245.1 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] 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.08381/0.08381, allocations: 16.67 MB / 313.9 MB, free: 12.42 MB / 254.1 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002011/0.002011, allocations: 71.89 kB / 436.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1102, allocations: 53.55 MB / 490.2 MB, free: 416 kB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002583/0.1128, allocations: 1.439 MB / 491.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009854/0.1138, allocations: 0.491 MB / 492.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.711e-05/0.1139, allocations: 0 / 492.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.815e-05/0.114, allocations: 7.922 kB / 492.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.145e-05/0.1141, allocations: 19.8 kB / 492.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002062/0.1143, allocations: 75.83 kB / 492.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002332/0.1145, allocations: 191.6 kB / 492.4 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.317e-05/0.1146, allocations: 8 kB / 492.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.1147, allocations: 95.73 kB / 492.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.1149, allocations: 95.7 kB / 492.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.406e-05/0.1149, allocations: 12 kB / 492.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.62e-05/0.115, allocations: 12 kB / 492.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.843e-05/0.1151, allocations: 51.91 kB / 492.7 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.1152, allocations: 75.73 kB / 492.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000205/0.1154, allocations: 135.6 kB / 492.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1154, allocations: 0 / 492.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1154, allocations: 0 / 492.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1154, allocations: 0 / 492.9 MB, free: 13.7 MB / 366.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.001079/0.1165, allocations: 0.5536 MB / 493.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.1166, allocations: 8.031 kB / 493.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.71e-05/0.1167, allocations: 28.81 kB / 493.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002126/0.1169, allocations: 180.2 kB / 493.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.1169, allocations: 12.36 kB / 493.7 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.034e-05/0.117, allocations: 24.36 kB / 493.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006475/0.1176, allocations: 381.4 kB / 494.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.1177, allocations: 0 / 494.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.17e-05/0.1177, allocations: 15.97 kB / 494.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.1177, allocations: 4 kB / 494.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002008/0.1179, allocations: 71.81 kB / 494.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000462/0.1184, allocations: 360.6 kB / 494.5 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002969/0.1187, allocations: 178.5 kB / 494.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002665/0.119, allocations: 165 kB / 494.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.274e-05/0.119, allocations: 4 kB / 494.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008589/0.1199, allocations: 0.5244 MB / 495.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.472e-06/0.1199, allocations: 4 kB / 495.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.001074/0.121, allocations: 0.6535 MB / 496.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.323e-05/0.121, allocations: 55.41 kB / 496.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/0.1212, allocations: 125.8 kB / 496.2 MB, free: 10.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.777e-05/0.1212, allocations: 41.7 kB / 496.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.795e-05/0.1213, allocations: 92.69 kB / 496.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.861e-05/0.1214, allocations: 79.56 kB / 496.4 MB, free: 9.969 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.1215, allocations: 49.7 kB / 496.5 MB, free: 9.914 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.1217, allocations: 338.8 kB / 496.8 MB, free: 9.574 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001607/0.1219, allocations: 92.16 kB / 496.9 MB, free: 9.484 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002235/0.1221, allocations: 151.4 kB / 497.1 MB, free: 9.312 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003772/0.1225, allocations: 225.8 kB / 497.3 MB, free: 9.074 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1225, allocations: 0 / 497.3 MB, free: 9.074 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003967/0.1229, allocations: 245.2 kB / 497.5 MB, free: 8.828 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.1229, allocations: 11.94 kB / 497.5 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.1229, allocations: 0 / 497.5 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.123, allocations: 4 kB / 497.5 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.109e-05/0.1231, allocations: 24.05 kB / 497.6 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.1231, allocations: 4 kB / 497.6 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.1233, allocations: 31.97 kB / 497.6 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.328e-05/0.1233, allocations: 12 kB / 497.6 MB, free: 8.742 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.0002207/0.1235, allocations: 161.3 kB / 497.8 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.349e-05/0.1236, allocations: 35.83 kB / 497.8 MB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.135e-05/0.1237, allocations: 29.62 kB / 497.8 MB, free: 8.508 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.1237, allocations: 4 kB / 497.8 MB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.1237, allocations: 0 / 497.8 MB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.1237, allocations: 3.984 kB / 497.8 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003006/0.124, allocations: 285.4 kB / 498.1 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.1241, allocations: 0 / 498.1 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.972e-05/0.1241, allocations: 11.88 kB / 498.1 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.1241, allocations: 0 / 498.1 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.525e-05/0.1241, allocations: 27.95 kB / 498.1 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1242, allocations: 7.984 kB / 498.2 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1242, allocations: 0 / 498.2 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008085/0.125, allocations: 0.5681 MB / 498.7 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/0.1251, allocations: 116.9 kB / 498.8 MB, free: 7.406 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.072e-05/0.1252, allocations: 27.95 kB / 498.9 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002152/0.1254, allocations: 35.95 kB / 498.9 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002192/0.1257, allocations: 91.83 kB / 499 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.668e-05/0.1257, allocations: 43.95 kB / 499 MB, free: 7.211 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.712e-05/0.1258, allocations: 99.2 kB / 499.1 MB, free: 7.113 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1258, allocations: 0 / 499.1 MB, free: 7.113 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002937/0.1261, allocations: 75.98 kB / 499.2 MB, free: 7.039 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.0001517/0.1263, allocations: 129.5 kB / 499.3 MB, free: 6.906 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005246/0.1268, allocations: 291.8 kB / 499.6 MB, free: 6.621 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1268, allocations: 256 / 499.6 MB, free: 6.621 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007155/0.1275, allocations: 0.7341 MB / 0.4886 GB, free: 5.887 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003023/0.1278, allocations: 51.89 kB / 0.4887 GB, free: 5.836 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009769/0.1288, allocations: 431 kB / 0.4891 GB, free: 5.391 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.1292, allocations: 0.7137 MB / 0.4898 GB, free: 4.648 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.1293, allocations: 37.97 kB / 0.4898 GB, free: 4.609 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001242/0.1295, allocations: 39.41 kB / 0.4899 GB, free: 4.57 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1295, allocations: 0 / 0.4899 GB, free: 4.57 MB / 366.1 MB Notification: Performance of Templates: time 0.0076/0.1371, allocations: 3.679 MB / 0.4934 GB, free: 0.9023 MB / 366.1 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=50 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) [Timeout 50] diffSimulationResults("PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.760924870846793]