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.001497/0.001497, allocations: 108 kB / 15.6 MB, free: 132 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.001814/0.001814, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.333/1.333, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1862/0.1862, allocations: 16.79 MB / 307.2 MB, free: 14.81 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 63.91 kB / 373.2 MB, free: 2.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3141, allocations: 53.56 MB / 426.7 MB, free: 40.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002739/0.3169, allocations: 1.43 MB / 428.1 MB, free: 39.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009692/0.3179, allocations: 0.4902 MB / 428.6 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.926e-05/0.318, allocations: 2.938 kB / 428.6 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.132e-05/0.3181, allocations: 3.938 kB / 428.6 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001083/0.3182, allocations: 15.05 kB / 428.6 MB, free: 39.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002288/0.3184, allocations: 72.12 kB / 428.7 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001816/0.3186, allocations: 191.2 kB / 428.9 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.848e-05/0.3187, allocations: 2.906 kB / 428.9 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001531/0.3188, allocations: 99.83 kB / 429 MB, free: 39.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001194/0.319, allocations: 93.91 kB / 429.1 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.284e-05/0.319, allocations: 14.34 kB / 429.1 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.29e-05/0.319, allocations: 11.62 kB / 429.1 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.132e-05/0.3191, allocations: 55.23 kB / 429.2 MB, free: 39.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.3192, allocations: 77.98 kB / 429.3 MB, free: 39.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001649/0.3194, allocations: 130.4 kB / 429.4 MB, free: 39.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3194, allocations: 0 / 429.4 MB, free: 39.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3194, allocations: 0 / 429.4 MB, free: 39.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.3194, allocations: 0 / 429.4 MB, free: 39.44 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.000942/0.3204, allocations: 0.5635 MB / 429.9 MB, free: 39.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.3204, allocations: 10.09 kB / 430 MB, free: 39.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.3205, allocations: 24.72 kB / 430 MB, free: 39.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.3207, allocations: 177.1 kB / 430.2 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.215e-05/0.3207, allocations: 13.17 kB / 430.2 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.311e-05/0.3208, allocations: 31.03 kB / 430.2 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005214/0.3213, allocations: 375.6 kB / 430.6 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.3213, allocations: 4 kB / 430.6 MB, free: 38.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.331e-05/0.3214, allocations: 12.17 kB / 430.6 MB, free: 38.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.3214, allocations: 6.875 kB / 430.6 MB, free: 38.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.3216, allocations: 70.91 kB / 430.7 MB, free: 38.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003506/0.3219, allocations: 371.2 kB / 431 MB, free: 38.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002475/0.3222, allocations: 175.6 kB / 431.2 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000198/0.3224, allocations: 161.5 kB / 431.3 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.3224, allocations: 2.875 kB / 431.3 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006744/0.3231, allocations: 0.528 MB / 431.9 MB, free: 38.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.244e-06/0.3231, allocations: 0 / 431.9 MB, free: 38.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008852/0.324, allocations: 0.6501 MB / 432.5 MB, free: 37.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.3241, allocations: 56.66 kB / 432.6 MB, free: 37.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.494e-05/0.3242, allocations: 129.4 kB / 432.7 MB, free: 37.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/0.3242, allocations: 42.81 kB / 432.7 MB, free: 37.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.938e-05/0.3242, allocations: 98.12 kB / 432.8 MB, free: 37.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.773e-05/0.3243, allocations: 65.91 kB / 432.9 MB, free: 37.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.132e-05/0.3244, allocations: 57.75 kB / 433 MB, free: 37.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.71e-05/0.3244, allocations: 333.1 kB / 433.3 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001346/0.3246, allocations: 93.36 kB / 433.4 MB, free: 37.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.3248, allocations: 152.8 kB / 433.5 MB, free: 36.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003074/0.3251, allocations: 236.1 kB / 433.8 MB, free: 36.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3251, allocations: 0 / 433.8 MB, free: 36.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003257/0.3254, allocations: 255.4 kB / 434 MB, free: 36.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.3254, allocations: 5.25 kB / 434 MB, free: 36.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3254, allocations: 0 / 434 MB, free: 36.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.3255, allocations: 2.938 kB / 434 MB, free: 36.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.66e-05/0.3256, allocations: 18.78 kB / 434 MB, free: 36.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.3256, allocations: 128 / 434 MB, free: 36.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002036/0.3258, allocations: 42.31 kB / 434.1 MB, free: 36.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.977e-05/0.3258, allocations: 8.438 kB / 434.1 MB, free: 36.66 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.0001803/0.326, allocations: 164.7 kB / 434.2 MB, free: 36.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.798e-05/0.326, allocations: 28.34 kB / 434.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.406e-05/0.3261, allocations: 33.62 kB / 434.3 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3261, allocations: 3.844 kB / 434.3 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.3262, allocations: 0 / 434.3 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.3262, allocations: 7.281 kB / 434.3 MB, free: 36.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001821/0.3264, allocations: 271.6 kB / 434.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3264, allocations: 2.5 kB / 434.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.435e-05/0.3264, allocations: 10.53 kB / 434.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3264, allocations: 2.594 kB / 434.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.269e-05/0.3264, allocations: 24.08 kB / 434.6 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3264, allocations: 0 / 434.6 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3265, allocations: 6.25 kB / 434.6 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005631/0.327, allocations: 0.5654 MB / 435.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.3271, allocations: 118.3 kB / 435.3 MB, free: 35.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.22e-05/0.3272, allocations: 31.66 kB / 435.3 MB, free: 35.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.3274, allocations: 38.91 kB / 435.4 MB, free: 35.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/0.3276, allocations: 85.44 kB / 435.5 MB, free: 35.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.617e-05/0.3277, allocations: 44.7 kB / 435.5 MB, free: 35.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.488e-05/0.3277, allocations: 105.1 kB / 435.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3277, allocations: 0 / 435.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002735/0.328, allocations: 79.06 kB / 435.7 MB, free: 35.73 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.0001788/0.3282, allocations: 131.2 kB / 435.8 MB, free: 35.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000501/0.3287, allocations: 306.1 kB / 436.1 MB, free: 35.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3287, allocations: 3.938 kB / 436.1 MB, free: 35.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005462/0.3293, allocations: 0.7259 MB / 436.8 MB, free: 35.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003166/0.3296, allocations: 59.42 kB / 436.9 MB, free: 35.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.3306, allocations: 445.4 kB / 437.3 MB, free: 34.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001937/0.3308, allocations: 0.7183 MB / 438.1 MB, free: 34.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.988e-05/0.3309, allocations: 33.08 kB / 438.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.3311, allocations: 42.06 kB / 438.1 MB, free: 34.07 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3311, allocations: 0 / 438.1 MB, free: 34.07 MB / 350.1 MB Notification: Performance of Templates: time 0.006341/0.3374, allocations: 3.661 MB / 441.8 MB, free: 33.83 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