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.001454/0.001454, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001763/0.001763, allocations: 189.7 kB / 16.25 MB, free: 6.629 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.355/1.355, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.221/0.221, allocations: 16.78 MB / 306.8 MB, free: 14.85 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 63.84 kB / 372.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3019, allocations: 53.56 MB / 426.2 MB, free: 40.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.003385/0.3053, allocations: 1.5 MB / 427.7 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.3065, allocations: 0.4989 MB / 428.2 MB, free: 39.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.448e-05/0.3066, allocations: 0 / 428.2 MB, free: 39.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.066e-05/0.3067, allocations: 0 / 428.2 MB, free: 39.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.3068, allocations: 14.06 kB / 428.2 MB, free: 39.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000259/0.3071, allocations: 69.83 kB / 428.3 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002009/0.3073, allocations: 183 kB / 428.4 MB, free: 39.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.261e-05/0.3074, allocations: 3.594 kB / 428.4 MB, free: 39.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001669/0.3076, allocations: 103.5 kB / 428.5 MB, free: 39.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001251/0.3077, allocations: 85.53 kB / 428.6 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.402e-05/0.3077, allocations: 14.62 kB / 428.6 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.156e-05/0.3078, allocations: 12.5 kB / 428.7 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.635e-05/0.3078, allocations: 60.77 kB / 428.7 MB, free: 39.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.308, allocations: 82.53 kB / 428.8 MB, free: 39.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001759/0.3081, allocations: 130.6 kB / 428.9 MB, free: 39.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3082, allocations: 0 / 428.9 MB, free: 39.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3082, allocations: 3.938 kB / 428.9 MB, free: 39.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.3082, allocations: 0 / 428.9 MB, free: 39.32 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.0009452/0.3091, allocations: 0.5597 MB / 429.5 MB, free: 38.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.3092, allocations: 10.12 kB / 429.5 MB, free: 38.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.3093, allocations: 22.28 kB / 429.5 MB, free: 38.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.3094, allocations: 182.1 kB / 429.7 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.019e-05/0.3095, allocations: 16.55 kB / 429.7 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.363e-05/0.3095, allocations: 24.8 kB / 429.7 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005138/0.3101, allocations: 377.7 kB / 430.1 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.3101, allocations: 0 / 430.1 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.062e-05/0.3101, allocations: 13.27 kB / 430.1 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.3101, allocations: 0 / 430.1 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001774/0.3103, allocations: 73.88 kB / 430.2 MB, free: 38.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003833/0.3107, allocations: 376.5 kB / 430.6 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000246/0.311, allocations: 172.6 kB / 430.7 MB, free: 38.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002102/0.3112, allocations: 160.5 kB / 430.9 MB, free: 38.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.143e-05/0.3112, allocations: 288 / 430.9 MB, free: 38.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007242/0.3119, allocations: 0.5273 MB / 431.4 MB, free: 37.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.714e-06/0.312, allocations: 0 / 431.4 MB, free: 37.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008501/0.3128, allocations: 0.6486 MB / 432.1 MB, free: 37.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.3129, allocations: 54.34 kB / 432.1 MB, free: 37.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.562e-05/0.313, allocations: 130.7 kB / 432.2 MB, free: 37.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.175e-05/0.313, allocations: 45.61 kB / 432.3 MB, free: 37.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.622e-05/0.3131, allocations: 98.88 kB / 432.4 MB, free: 37.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.484e-05/0.3131, allocations: 65.52 kB / 432.4 MB, free: 37.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.104e-05/0.3132, allocations: 55.5 kB / 432.5 MB, free: 37.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.553e-05/0.3133, allocations: 332 kB / 432.8 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.3134, allocations: 85.62 kB / 432.9 MB, free: 36.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.3136, allocations: 153.9 kB / 433.1 MB, free: 36.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003075/0.3139, allocations: 248.9 kB / 433.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3139, allocations: 0 / 433.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003555/0.3143, allocations: 245 kB / 433.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.3143, allocations: 9.125 kB / 433.6 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.485e-06/0.3143, allocations: 0 / 433.6 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/0.3144, allocations: 2.938 kB / 433.6 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.3145, allocations: 15.78 kB / 433.6 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.3145, allocations: 6.656 kB / 433.6 MB, free: 36.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002154/0.3147, allocations: 38.05 kB / 433.6 MB, free: 36.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/0.3147, allocations: 8.656 kB / 433.6 MB, free: 36.55 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.0001924/0.3149, allocations: 168.3 kB / 433.8 MB, free: 36.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.935e-05/0.315, allocations: 29.19 kB / 433.8 MB, free: 36.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.818e-05/0.3151, allocations: 32.38 kB / 433.8 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.3151, allocations: 2.938 kB / 433.8 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.3151, allocations: 4 kB / 433.9 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.3151, allocations: 3.328 kB / 433.9 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.3153, allocations: 272.3 kB / 434.1 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3153, allocations: 4 kB / 434.1 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.83e-05/0.3153, allocations: 6.812 kB / 434.1 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.3153, allocations: 2.906 kB / 434.1 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.305e-05/0.3154, allocations: 29.81 kB / 434.2 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.3154, allocations: 0 / 434.2 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.3154, allocations: 0 / 434.2 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006103/0.316, allocations: 0.5678 MB / 434.7 MB, free: 35.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.3161, allocations: 118.9 kB / 434.8 MB, free: 35.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.711e-05/0.3162, allocations: 32.52 kB / 434.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/0.3164, allocations: 39.58 kB / 434.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001921/0.3166, allocations: 85.81 kB / 435 MB, free: 35.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.676e-05/0.3167, allocations: 41.09 kB / 435 MB, free: 35.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.441e-05/0.3167, allocations: 94.2 kB / 435.1 MB, free: 35.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3167, allocations: 0 / 435.1 MB, free: 35.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002951/0.317, allocations: 81.45 kB / 435.2 MB, free: 35.63 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 0.000165/0.3172, allocations: 146.2 kB / 435.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005281/0.3178, allocations: 306.7 kB / 435.7 MB, free: 35.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3178, allocations: 0 / 435.7 MB, free: 35.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005057/0.3183, allocations: 0.7253 MB / 436.4 MB, free: 34.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003506/0.3186, allocations: 58.09 kB / 436.4 MB, free: 34.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009104/0.3196, allocations: 468.4 kB / 436.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001447/0.3197, allocations: 0.7168 MB / 437.6 MB, free: 33.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.3198, allocations: 34.42 kB / 437.6 MB, free: 33.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.32, allocations: 41.8 kB / 437.7 MB, free: 33.93 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.32, allocations: 0 / 437.7 MB, free: 33.93 MB / 350.1 MB Notification: Performance of Templates: time 0.00653/0.3265, allocations: 3.58 MB / 441.3 MB, free: 33.7 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/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) Reference file matches