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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) 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=1000,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=1000,variableFilter="Ntap|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001312, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 185.3 kB / 16.92 MB, free: 6.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.133/1.133, allocations: 223.3 MB / 241 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1521/0.1521, allocations: 16.77 MB / 308.9 MB, free: 15.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002437/0.0002437, allocations: 11.98 kB / 375.6 MB, free: 1.766 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2077, allocations: 54.56 MB / 430.1 MB, free: 39.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001105/0.2088, allocations: 1.163 MB / 431.3 MB, free: 39.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000707/0.2096, allocations: 0.492 MB / 431.8 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.722e-05/0.2096, allocations: 0 / 431.8 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.439e-05/0.2096, allocations: 1.406 kB / 431.8 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.893e-05/0.2097, allocations: 16.41 kB / 431.8 MB, free: 38.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001505/0.2099, allocations: 64.83 kB / 431.9 MB, free: 38.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001142/0.21, allocations: 187.4 kB / 432 MB, free: 38.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.239e-05/0.21, allocations: 7.781 kB / 432 MB, free: 38.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.701e-05/0.2101, allocations: 95.84 kB / 432.1 MB, free: 38.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.579e-05/0.2102, allocations: 94.55 kB / 432.2 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.101e-05/0.2103, allocations: 13.09 kB / 432.2 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.369e-05/0.2103, allocations: 11.75 kB / 432.3 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.179e-05/0.2103, allocations: 56.42 kB / 432.3 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.723e-05/0.2104, allocations: 107.3 kB / 432.4 MB, free: 38.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.577e-05/0.2105, allocations: 84.72 kB / 432.5 MB, free: 38.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.2105, allocations: 0 / 432.5 MB, free: 38.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2105, allocations: 3.938 kB / 432.5 MB, free: 38.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.036e-06/0.2105, allocations: 4 kB / 432.5 MB, free: 38.86 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.0006371/0.2112, allocations: 486.5 kB / 433 MB, free: 38.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.835e-05/0.2112, allocations: 12.81 kB / 433 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.384e-05/0.2113, allocations: 23.19 kB / 433 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.021e-05/0.2114, allocations: 178.6 kB / 433.2 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.2114, allocations: 14.12 kB / 433.2 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.706e-05/0.2115, allocations: 30.34 kB / 433.2 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000441/0.2119, allocations: 379.1 kB / 433.6 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.122e-06/0.2119, allocations: 0 / 433.6 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.141e-05/0.212, allocations: 8.609 kB / 433.6 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.212, allocations: 6.203 kB / 433.6 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001463/0.2121, allocations: 68.2 kB / 433.7 MB, free: 38.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002745/0.2124, allocations: 373.5 kB / 434 MB, free: 37.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.2126, allocations: 172.7 kB / 434.2 MB, free: 37.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001911/0.2128, allocations: 163.7 kB / 434.4 MB, free: 37.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.031e-05/0.2128, allocations: 0 / 434.4 MB, free: 37.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005293/0.2134, allocations: 0.5339 MB / 434.9 MB, free: 37.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.363e-06/0.2134, allocations: 0 / 434.9 MB, free: 37.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0006862/0.2141, allocations: 0.6572 MB / 435.6 MB, free: 37.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/0.2141, allocations: 60.61 kB / 435.6 MB, free: 37.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.078e-05/0.2142, allocations: 120 kB / 435.7 MB, free: 37.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.726e-05/0.2142, allocations: 49.84 kB / 435.8 MB, free: 37.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.775e-05/0.2143, allocations: 92.95 kB / 435.9 MB, free: 37.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.193e-05/0.2143, allocations: 73.81 kB / 436 MB, free: 37.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.577e-05/0.2143, allocations: 29.8 kB / 436 MB, free: 37.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.288e-05/0.2144, allocations: 334.9 kB / 436.3 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.2145, allocations: 88.67 kB / 436.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.2146, allocations: 151.4 kB / 436.5 MB, free: 36.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000246/0.2149, allocations: 233.9 kB / 436.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.2149, allocations: 3.938 kB / 436.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002706/0.2152, allocations: 247.2 kB / 437 MB, free: 36.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.2152, allocations: 6.656 kB / 437 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.2152, allocations: 0 / 437 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.2152, allocations: 2.562 kB / 437 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.066e-05/0.2153, allocations: 22.58 kB / 437 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.2153, allocations: 2.719 kB / 437.1 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001875/0.2155, allocations: 48.45 kB / 437.1 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.2155, allocations: 16.16 kB / 437.1 MB, free: 36.44 MB / 350.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.0001293/0.2157, allocations: 155.6 kB / 437.3 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.598e-05/0.2157, allocations: 29.58 kB / 437.3 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.491e-05/0.2158, allocations: 29.62 kB / 437.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-06/0.2158, allocations: 5.797 kB / 437.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.2158, allocations: 4 kB / 437.3 MB, free: 36.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.2158, allocations: 0 / 437.3 MB, free: 36.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001433/0.2159, allocations: 278.7 kB / 437.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.216, allocations: 3.141 kB / 437.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.368e-05/0.216, allocations: 2.688 kB / 437.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.216, allocations: 2.969 kB / 437.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.973e-05/0.216, allocations: 29.59 kB / 437.6 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.216, allocations: 3.938 kB / 437.6 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.216, allocations: 0 / 437.6 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004997/0.2165, allocations: 0.5667 MB / 438.2 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.208e-05/0.2166, allocations: 123.6 kB / 438.3 MB, free: 35.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.148e-05/0.2167, allocations: 25.09 kB / 438.4 MB, free: 35.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001929/0.2169, allocations: 49.84 kB / 438.4 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.217, allocations: 80.72 kB / 438.5 MB, free: 35.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.528e-05/0.2171, allocations: 49.44 kB / 438.5 MB, free: 35.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.081e-05/0.2171, allocations: 95.55 kB / 438.6 MB, free: 35.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2171, allocations: 0 / 438.6 MB, free: 35.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002365/0.2174, allocations: 80.55 kB / 438.7 MB, free: 35.54 MB / 350.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 9.859e-05/0.2175, allocations: 138.8 kB / 438.8 MB, free: 35.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003399/0.2178, allocations: 289.4 kB / 439.1 MB, free: 35.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2178, allocations: 0 / 439.1 MB, free: 35.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003633/0.2182, allocations: 0.7283 MB / 439.9 MB, free: 34.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002474/0.2184, allocations: 54.12 kB / 439.9 MB, free: 34.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006957/0.2192, allocations: 489.3 kB / 440.4 MB, free: 34.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.895e-05/0.2193, allocations: 0.7191 MB / 441.1 MB, free: 33.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.2194, allocations: 38.95 kB / 441.1 MB, free: 33.86 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2194, allocations: 0 / 441.1 MB, free: 33.86 MB / 350.1 MB Notification: Performance of Templates: time 0.002823/0.2222, allocations: 2.57 MB / 443.7 MB, free: 33.64 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (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) diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches