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.004454/0.004454, allocations: 103.1 kB / 15.73 MB, free: 6.484 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.001018/0.001018, allocations: 196.3 kB / 16.68 MB, free: 6.375 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.256/1.256, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1689/0.1689, allocations: 16.76 MB / 307.3 MB, free: 14.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 65.7 kB / 428.1 MB, free: 36.4 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07836/0.07953, allocations: 53.57 MB / 481.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001962/0.08154, allocations: 1.435 MB / 483.1 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007194/0.08227, allocations: 0.4927 MB / 483.6 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.683e-05/0.08231, allocations: 0 / 483.6 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.784e-05/0.08234, allocations: 3.938 kB / 483.6 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.659e-05/0.08243, allocations: 25.53 kB / 483.6 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001561/0.08259, allocations: 73.25 kB / 483.7 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001311/0.08273, allocations: 195 kB / 483.8 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.936e-05/0.08277, allocations: 2.75 kB / 483.9 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.316e-05/0.08287, allocations: 101.3 kB / 483.9 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.109e-05/0.08297, allocations: 87.11 kB / 484 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.701e-05/0.08301, allocations: 12.38 kB / 484 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.307e-05/0.08305, allocations: 12.38 kB / 484.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.064e-05/0.0831, allocations: 56.22 kB / 484.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.041e-05/0.0832, allocations: 73.92 kB / 484.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.08334, allocations: 134.6 kB / 484.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.08335, allocations: 0 / 484.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.08336, allocations: 0 / 484.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.08336, allocations: 0 / 484.3 MB, free: 7.488 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.0007913/0.08416, allocations: 0.5598 MB / 484.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.0842, allocations: 9.125 kB / 484.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.039e-05/0.0843, allocations: 24.48 kB / 484.9 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.584e-05/0.08439, allocations: 176.2 kB / 485.1 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.08442, allocations: 19.38 kB / 485.1 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.107e-05/0.08448, allocations: 26.83 kB / 485.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004629/0.08495, allocations: 385.4 kB / 485.5 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.08496, allocations: 0 / 485.5 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.08501, allocations: 12.8 kB / 485.5 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.08502, allocations: 1.062 kB / 485.5 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001662/0.08519, allocations: 66.59 kB / 485.6 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002911/0.08549, allocations: 375.3 kB / 485.9 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002267/0.08572, allocations: 176.7 kB / 486.1 MB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001993/0.08593, allocations: 165.2 kB / 486.3 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.08594, allocations: 1.281 kB / 486.3 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006038/0.08655, allocations: 0.5289 MB / 486.8 MB, free: 5.512 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.683e-06/0.08656, allocations: 0 / 486.8 MB, free: 5.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008115/0.08738, allocations: 0.6451 MB / 487.5 MB, free: 5.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.08742, allocations: 56.31 kB / 487.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.338e-05/0.08749, allocations: 124.2 kB / 487.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.08752, allocations: 44.38 kB / 487.7 MB, free: 4.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.145e-05/0.08756, allocations: 96.23 kB / 487.8 MB, free: 4.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.196e-05/0.08761, allocations: 81.02 kB / 487.9 MB, free: 4.789 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.426e-05/0.08769, allocations: 55.11 kB / 487.9 MB, free: 4.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.143e-05/0.08774, allocations: 326.9 kB / 488.2 MB, free: 4.426 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.08787, allocations: 92.94 kB / 488.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001394/0.08801, allocations: 153.5 kB / 488.5 MB, free: 4.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/0.08827, allocations: 229.8 kB / 488.7 MB, free: 3.973 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.08828, allocations: 4 kB / 488.7 MB, free: 3.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002689/0.08855, allocations: 241.2 kB / 488.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.08857, allocations: 8.031 kB / 488.9 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.08858, allocations: 4 kB / 488.9 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.0886, allocations: 3.984 kB / 488.9 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.522e-05/0.08868, allocations: 15.94 kB / 489 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.08869, allocations: 3.984 kB / 489 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/0.08887, allocations: 47.8 kB / 489 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.793e-05/0.0889, allocations: 11.94 kB / 489 MB, free: 3.633 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.0001288/0.08903, allocations: 163.2 kB / 489.2 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.166e-05/0.08908, allocations: 27.81 kB / 489.2 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.495e-05/0.08915, allocations: 33.61 kB / 489.2 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.08915, allocations: 4 kB / 489.2 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.08916, allocations: 0 / 489.2 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.08917, allocations: 0 / 489.2 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001504/0.08932, allocations: 273.4 kB / 489.5 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.08933, allocations: 4 kB / 489.5 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.561e-05/0.08936, allocations: 11.92 kB / 489.5 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.08937, allocations: 4 kB / 489.5 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.388e-05/0.08941, allocations: 27.95 kB / 489.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.08941, allocations: 0 / 489.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.08942, allocations: 0 / 489.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005257/0.08995, allocations: 0.5642 MB / 490.1 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.09007, allocations: 120.8 kB / 490.2 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.171e-05/0.09013, allocations: 23.97 kB / 490.3 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.09032, allocations: 51.94 kB / 490.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.09048, allocations: 83.78 kB / 490.4 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.742e-05/0.09052, allocations: 43.95 kB / 490.4 MB, free: 2.117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.139e-05/0.09056, allocations: 96.64 kB / 490.5 MB, free: 2.023 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09056, allocations: 0 / 490.5 MB, free: 2.023 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002403/0.09081, allocations: 79.97 kB / 490.6 MB, free: 1.945 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.0001/0.09091, allocations: 133.5 kB / 490.7 MB, free: 1.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003692/0.09129, allocations: 291.8 kB / 491 MB, free: 1.523 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.0913, allocations: 4 kB / 491 MB, free: 1.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003795/0.09168, allocations: 0.7263 MB / 491.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.09193, allocations: 51.88 kB / 491.8 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007151/0.09266, allocations: 435.1 kB / 492.2 MB, free: 300 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002053/0.09287, allocations: 0.7218 MB / 493 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.024e-05/0.09297, allocations: 29.94 kB / 493 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.09309, allocations: 51.33 kB / 493 MB, free: 15.46 MB / 366.1 MB Notification: Performance of SimCode: time 1.543e-06/0.0931, allocations: 0 / 493 MB, free: 15.46 MB / 366.1 MB Notification: Performance of Templates: time 0.006157/0.09926, allocations: 3.683 MB / 496.7 MB, free: 11.79 MB / 366.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