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.001495/0.001495, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001756/0.001756, allocations: 193.1 kB / 16.14 MB, free: 6.656 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.371/1.371, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1795/0.1795, allocations: 16.78 MB / 306.7 MB, free: 14.98 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 75.88 kB / 372.5 MB, free: 2.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3388, allocations: 53.55 MB / 426 MB, free: 40.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002146/0.341, allocations: 1.492 MB / 427.5 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007137/0.3417, allocations: 0.4962 MB / 428 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.128e-05/0.3418, allocations: 2.781 kB / 428 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.926e-05/0.3418, allocations: 0 / 428 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.534e-05/0.3419, allocations: 15.09 kB / 428 MB, free: 39.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001584/0.3421, allocations: 62.45 kB / 428.1 MB, free: 39.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000134/0.3422, allocations: 194 kB / 428.3 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.739e-05/0.3423, allocations: 5.625 kB / 428.3 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.943e-05/0.3424, allocations: 91.3 kB / 428.4 MB, free: 39.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.76e-05/0.3425, allocations: 95.95 kB / 428.5 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.753e-05/0.3425, allocations: 9.219 kB / 428.5 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.065e-05/0.3426, allocations: 14.25 kB / 428.5 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.48e-05/0.3426, allocations: 55.16 kB / 428.5 MB, free: 39.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.856e-05/0.3427, allocations: 86.06 kB / 428.6 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.3428, allocations: 128.5 kB / 428.7 MB, free: 39.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.3428, allocations: 3.938 kB / 428.7 MB, free: 39.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3428, allocations: 0 / 428.7 MB, free: 39.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.3429, allocations: 7.938 kB / 428.8 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.000846/0.3437, allocations: 0.5546 MB / 429.3 MB, free: 38.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.3438, allocations: 9.625 kB / 429.3 MB, free: 38.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.487e-05/0.3439, allocations: 26.95 kB / 429.3 MB, free: 38.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.68e-05/0.344, allocations: 173.7 kB / 429.5 MB, free: 38.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.344, allocations: 16.16 kB / 429.5 MB, free: 38.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.753e-05/0.344, allocations: 28.83 kB / 429.6 MB, free: 38.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004756/0.3445, allocations: 380.4 kB / 429.9 MB, free: 38.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.3445, allocations: 0 / 429.9 MB, free: 38.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.871e-05/0.3446, allocations: 8.859 kB / 429.9 MB, free: 38.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.3446, allocations: 0 / 429.9 MB, free: 38.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001669/0.3448, allocations: 73.28 kB / 430 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003117/0.3451, allocations: 368.7 kB / 430.4 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002219/0.3453, allocations: 170.7 kB / 430.5 MB, free: 38.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/0.3455, allocations: 172.4 kB / 430.7 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.284e-05/0.3456, allocations: 2.766 kB / 430.7 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006117/0.3462, allocations: 0.5212 MB / 431.2 MB, free: 37.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.555e-06/0.3462, allocations: 0.8438 kB / 431.2 MB, free: 37.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0007829/0.347, allocations: 0.6528 MB / 431.9 MB, free: 37.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.66e-05/0.347, allocations: 54 kB / 431.9 MB, free: 37.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.084e-05/0.3471, allocations: 134.2 kB / 432.1 MB, free: 37.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/0.3471, allocations: 45.08 kB / 432.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.473e-05/0.3472, allocations: 87.3 kB / 432.2 MB, free: 37.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.508e-05/0.3472, allocations: 71.78 kB / 432.3 MB, free: 37.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.482e-05/0.3473, allocations: 64.05 kB / 432.3 MB, free: 37.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.697e-05/0.3473, allocations: 331.8 kB / 432.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.3475, allocations: 87.94 kB / 432.7 MB, free: 36.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.3476, allocations: 147.7 kB / 432.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.3479, allocations: 245.1 kB / 433.1 MB, free: 36.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3479, allocations: 3.938 kB / 433.1 MB, free: 36.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000289/0.3482, allocations: 240.4 kB / 433.4 MB, free: 36.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.3482, allocations: 9.281 kB / 433.4 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.3482, allocations: 4 kB / 433.4 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.3483, allocations: 7.094 kB / 433.4 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.567e-05/0.3483, allocations: 16.75 kB / 433.4 MB, free: 36.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.3484, allocations: 14.02 kB / 433.4 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001991/0.3486, allocations: 34.52 kB / 433.4 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.3486, allocations: 10.69 kB / 433.5 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.000145/0.3487, allocations: 162.2 kB / 433.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.546e-05/0.3488, allocations: 30.66 kB / 433.6 MB, free: 36.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.607e-05/0.3489, allocations: 32.28 kB / 433.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3489, allocations: 2.594 kB / 433.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3489, allocations: 0 / 433.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3489, allocations: 3.328 kB / 433.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001603/0.3491, allocations: 274.5 kB / 433.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.3491, allocations: 0 / 433.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.751e-05/0.3491, allocations: 14.53 kB / 434 MB, free: 36.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.3491, allocations: 4 kB / 434 MB, free: 36.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.328e-05/0.3491, allocations: 24.77 kB / 434 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.3491, allocations: 2.781 kB / 434 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3492, allocations: 0 / 434 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005493/0.3497, allocations: 0.5655 MB / 434.6 MB, free: 35.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.3498, allocations: 118.8 kB / 434.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.965e-05/0.3499, allocations: 22.3 kB / 434.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.3501, allocations: 47.38 kB / 434.7 MB, free: 35.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001668/0.3503, allocations: 83.08 kB / 434.8 MB, free: 35.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.882e-05/0.3503, allocations: 46.17 kB / 434.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.273e-05/0.3504, allocations: 92.34 kB / 435 MB, free: 35.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3504, allocations: 0 / 435 MB, free: 35.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000257/0.3506, allocations: 74.92 kB / 435 MB, free: 35.65 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.0001202/0.3507, allocations: 137.4 kB / 435.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003791/0.3511, allocations: 297.7 kB / 435.5 MB, free: 35.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3511, allocations: 6.906 kB / 435.5 MB, free: 35.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003979/0.3515, allocations: 0.7237 MB / 436.2 MB, free: 34.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/0.3518, allocations: 54.91 kB / 436.2 MB, free: 34.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008232/0.3527, allocations: 464.7 kB / 436.7 MB, free: 34.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001394/0.3528, allocations: 0.7121 MB / 437.4 MB, free: 34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001024/0.3529, allocations: 37.55 kB / 437.4 MB, free: 33.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.353, allocations: 35.61 kB / 437.5 MB, free: 33.98 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.353, allocations: 4 kB / 437.5 MB, free: 33.98 MB / 350.1 MB Notification: Performance of Templates: time 0.1736/0.5266, allocations: 3.305 MB / 440.8 MB, free: 33.75 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=50 -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