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.001169/0.001169, allocations: 103.4 kB / 15.33 MB, free: 0.5039 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.001191/0.001191, allocations: 199.5 kB / 16.26 MB, free: 6.625 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.387/1.387, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2085/0.2085, allocations: 16.79 MB / 306.9 MB, free: 14.86 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 63.89 kB / 372.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3244, allocations: 53.56 MB / 426.2 MB, free: 40.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.00234/0.3268, allocations: 1.501 MB / 427.7 MB, free: 39.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008571/0.3277, allocations: 0.5025 MB / 428.2 MB, free: 39.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.084e-05/0.3278, allocations: 2.812 kB / 428.2 MB, free: 39.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.138e-05/0.3278, allocations: 0 / 428.2 MB, free: 39.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.64e-05/0.3279, allocations: 13.41 kB / 428.2 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001894/0.3281, allocations: 67.03 kB / 428.3 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001483/0.3282, allocations: 183.1 kB / 428.4 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.515e-05/0.3283, allocations: 3.375 kB / 428.5 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.3284, allocations: 96.95 kB / 428.5 MB, free: 39.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/0.3285, allocations: 93.17 kB / 428.6 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.473e-05/0.3286, allocations: 13.97 kB / 428.7 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.019e-05/0.3286, allocations: 12.12 kB / 428.7 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.111e-05/0.3287, allocations: 58.05 kB / 428.7 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.3288, allocations: 83.77 kB / 428.8 MB, free: 39.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.329, allocations: 130.8 kB / 428.9 MB, free: 39.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.969e-06/0.329, allocations: 3.406 kB / 428.9 MB, free: 39.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3291, allocations: 3.938 kB / 428.9 MB, free: 39.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.3291, allocations: 4 kB / 428.9 MB, free: 39.46 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.0008692/0.3299, allocations: 0.5533 MB / 429.5 MB, free: 39.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.33, allocations: 8.438 kB / 429.5 MB, free: 39.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.3301, allocations: 22.23 kB / 429.5 MB, free: 39.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001405/0.3303, allocations: 182.4 kB / 429.7 MB, free: 38.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.3303, allocations: 16.78 kB / 429.7 MB, free: 38.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.231e-05/0.3304, allocations: 24.16 kB / 429.7 MB, free: 38.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004979/0.3309, allocations: 384.5 kB / 430.1 MB, free: 38.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.3309, allocations: 0 / 430.1 MB, free: 38.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.024e-05/0.3309, allocations: 16.27 kB / 430.1 MB, free: 38.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.3309, allocations: 0 / 430.1 MB, free: 38.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001649/0.3311, allocations: 69.48 kB / 430.2 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003339/0.3314, allocations: 372.1 kB / 430.6 MB, free: 38.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002556/0.3317, allocations: 170.2 kB / 430.7 MB, free: 38.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001996/0.3319, allocations: 165.8 kB / 430.9 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.433e-05/0.3319, allocations: 2.562 kB / 430.9 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006765/0.3326, allocations: 0.5297 MB / 431.4 MB, free: 38.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.643e-06/0.3326, allocations: 0 / 431.4 MB, free: 38.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008394/0.3335, allocations: 0.6456 MB / 432.1 MB, free: 37.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.754e-05/0.3335, allocations: 64.41 kB / 432.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.936e-05/0.3336, allocations: 125.5 kB / 432.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.942e-05/0.3337, allocations: 45.08 kB / 432.3 MB, free: 37.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.719e-05/0.3337, allocations: 87.52 kB / 432.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.061e-05/0.3338, allocations: 75.36 kB / 432.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.852e-05/0.3338, allocations: 49.02 kB / 432.5 MB, free: 37.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.374e-05/0.3339, allocations: 336.4 kB / 432.8 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.334, allocations: 90.28 kB / 432.9 MB, free: 37.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.3342, allocations: 147.5 kB / 433.1 MB, free: 36.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002863/0.3345, allocations: 251.1 kB / 433.3 MB, free: 36.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3345, allocations: 0 / 433.3 MB, free: 36.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002978/0.3348, allocations: 244.5 kB / 433.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.3348, allocations: 3.906 kB / 433.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.3348, allocations: 4 kB / 433.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.3349, allocations: 7.594 kB / 433.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.671e-05/0.3349, allocations: 21.31 kB / 433.6 MB, free: 36.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.335, allocations: 10.22 kB / 433.6 MB, free: 36.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001973/0.3352, allocations: 33.84 kB / 433.6 MB, free: 36.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.074e-05/0.3352, allocations: 12.53 kB / 433.6 MB, free: 36.68 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.00017/0.3354, allocations: 159.3 kB / 433.8 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.957e-05/0.3354, allocations: 28.45 kB / 433.8 MB, free: 36.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.283e-05/0.3355, allocations: 32.56 kB / 433.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3355, allocations: 6.016 kB / 433.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.162e-05/0.3355, allocations: 0 / 433.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.3355, allocations: 0 / 433.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001964/0.3357, allocations: 275.9 kB / 434.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.3358, allocations: 0 / 434.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.978e-05/0.3358, allocations: 6.906 kB / 434.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.3358, allocations: 6.328 kB / 434.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.815e-05/0.3358, allocations: 27.64 kB / 434.2 MB, free: 36.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3358, allocations: 3 kB / 434.2 MB, free: 36.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3359, allocations: 3.234 kB / 434.2 MB, free: 36.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006014/0.3365, allocations: 0.5611 MB / 434.7 MB, free: 36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.3366, allocations: 116.3 kB / 434.9 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.389e-05/0.3367, allocations: 24.56 kB / 434.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.3369, allocations: 45.66 kB / 434.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001814/0.3371, allocations: 86.53 kB / 435 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-05/0.3371, allocations: 45.8 kB / 435.1 MB, free: 35.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.656e-05/0.3372, allocations: 99.92 kB / 435.1 MB, free: 35.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3372, allocations: 0 / 435.1 MB, free: 35.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002588/0.3374, allocations: 76.39 kB / 435.2 MB, free: 35.77 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.0001431/0.3376, allocations: 138.1 kB / 435.4 MB, free: 35.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004628/0.338, allocations: 300.7 kB / 435.7 MB, free: 35.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.338, allocations: 10.78 kB / 435.7 MB, free: 35.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004444/0.3385, allocations: 0.7263 MB / 436.4 MB, free: 35.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.3388, allocations: 56.69 kB / 436.4 MB, free: 35.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009514/0.3398, allocations: 471 kB / 436.9 MB, free: 34.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001613/0.34, allocations: 0.7146 MB / 437.6 MB, free: 34.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001091/0.3401, allocations: 25.8 kB / 437.6 MB, free: 34.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.3402, allocations: 39.77 kB / 437.7 MB, free: 34.09 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3402, allocations: 0 / 437.7 MB, free: 34.09 MB / 350.1 MB Notification: Performance of Templates: time 0.005912/0.3461, allocations: 3.594 MB / 441.3 MB, free: 33.84 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