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.001281/0.001281, allocations: 108 kB / 15.61 MB, free: 152 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.001355/0.001355, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.55/1.55, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2137/0.2137, allocations: 16.69 MB / 307.1 MB, free: 14.92 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002805/0.002805, allocations: 67.91 kB / 373.1 MB, free: 2.301 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2868, allocations: 53.54 MB / 426.6 MB, free: 40.94 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002325/0.2892, allocations: 1.437 MB / 428 MB, free: 40.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007824/0.29, allocations: 496.9 kB / 428.5 MB, free: 40.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.033e-05/0.2901, allocations: 0 / 428.5 MB, free: 40.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.752e-05/0.2901, allocations: 11.16 kB / 428.5 MB, free: 40.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.41e-05/0.2902, allocations: 18.17 kB / 428.6 MB, free: 40 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001718/0.2904, allocations: 75.83 kB / 428.6 MB, free: 39.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001229/0.2905, allocations: 182.4 kB / 428.8 MB, free: 39.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.278e-05/0.2906, allocations: 3.438 kB / 428.8 MB, free: 39.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.471e-05/0.2907, allocations: 101.9 kB / 428.9 MB, free: 39.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.673e-05/0.2908, allocations: 90.3 kB / 429 MB, free: 39.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.606e-05/0.2908, allocations: 14.66 kB / 429 MB, free: 39.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.848e-05/0.2908, allocations: 11.81 kB / 429 MB, free: 39.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.719e-05/0.2909, allocations: 56 kB / 429.1 MB, free: 39.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.437e-05/0.291, allocations: 75.08 kB / 429.1 MB, free: 39.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.2911, allocations: 135.4 kB / 429.3 MB, free: 39.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2911, allocations: 0 / 429.3 MB, free: 39.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.2911, allocations: 2.75 kB / 429.3 MB, free: 39.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.2911, allocations: 7.875 kB / 429.3 MB, free: 39.72 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.0008113/0.292, allocations: 0.5536 MB / 429.8 MB, free: 39.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.976e-05/0.292, allocations: 6.812 kB / 429.9 MB, free: 39.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.354e-05/0.2921, allocations: 27.38 kB / 429.9 MB, free: 39.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.2922, allocations: 174 kB / 430 MB, free: 39.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.2922, allocations: 12.86 kB / 430.1 MB, free: 39.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.238e-05/0.2923, allocations: 29.39 kB / 430.1 MB, free: 39.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004601/0.2928, allocations: 378.2 kB / 430.5 MB, free: 38.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.2928, allocations: 6.812 kB / 430.5 MB, free: 38.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.749e-05/0.2928, allocations: 9.422 kB / 430.5 MB, free: 38.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.2929, allocations: 3.656 kB / 430.5 MB, free: 38.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001667/0.293, allocations: 67.58 kB / 430.5 MB, free: 38.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003004/0.2933, allocations: 372.8 kB / 430.9 MB, free: 38.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002135/0.2936, allocations: 177.7 kB / 431.1 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001903/0.2938, allocations: 162.7 kB / 431.2 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.228e-05/0.2938, allocations: 1.078 kB / 431.2 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005885/0.2944, allocations: 0.5315 MB / 431.8 MB, free: 38.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.593e-06/0.2944, allocations: 0 / 431.8 MB, free: 38.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0007873/0.2952, allocations: 0.6428 MB / 432.4 MB, free: 38.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/0.2952, allocations: 54.28 kB / 432.5 MB, free: 38.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.511e-05/0.2953, allocations: 134.2 kB / 432.6 MB, free: 37.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.522e-05/0.2953, allocations: 45.69 kB / 432.6 MB, free: 37.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.292e-05/0.2954, allocations: 94.98 kB / 432.7 MB, free: 37.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.64e-05/0.2954, allocations: 70.03 kB / 432.8 MB, free: 37.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.561e-05/0.2955, allocations: 55.94 kB / 432.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.125e-05/0.2956, allocations: 336.2 kB / 433.2 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.2957, allocations: 85.55 kB / 433.3 MB, free: 37.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/0.2958, allocations: 161 kB / 433.4 MB, free: 37.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002768/0.2961, allocations: 234.8 kB / 433.7 MB, free: 37.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2961, allocations: 3.938 kB / 433.7 MB, free: 37.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003151/0.2965, allocations: 251.5 kB / 433.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.2965, allocations: 5 kB / 433.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2965, allocations: 0 / 433.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.2965, allocations: 2.75 kB / 433.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.385e-05/0.2966, allocations: 18.94 kB / 433.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.2966, allocations: 6.672 kB / 433.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000201/0.2968, allocations: 29.95 kB / 434 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.889e-05/0.2968, allocations: 12.53 kB / 434 MB, free: 36.95 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.0001602/0.297, allocations: 161.2 kB / 434.1 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.003e-05/0.2971, allocations: 26.39 kB / 434.2 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.481e-05/0.2971, allocations: 35.67 kB / 434.2 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.2971, allocations: 2.844 kB / 434.2 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.2972, allocations: 0 / 434.2 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2972, allocations: 0 / 434.2 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001759/0.2973, allocations: 278 kB / 434.5 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2974, allocations: 4 kB / 434.5 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.478e-05/0.2974, allocations: 14.98 kB / 434.5 MB, free: 36.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2974, allocations: 0 / 434.5 MB, free: 36.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.266e-05/0.2974, allocations: 23.56 kB / 434.5 MB, free: 36.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.2974, allocations: 3.531 kB / 434.5 MB, free: 36.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2974, allocations: 0 / 434.5 MB, free: 36.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005697/0.298, allocations: 0.573 MB / 435.1 MB, free: 36.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.2981, allocations: 120.5 kB / 435.2 MB, free: 36.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.22e-05/0.2982, allocations: 29.28 kB / 435.2 MB, free: 36.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.2984, allocations: 38.97 kB / 435.3 MB, free: 36.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/0.2986, allocations: 85.38 kB / 435.4 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-05/0.2987, allocations: 43.38 kB / 435.4 MB, free: 36.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.682e-05/0.2987, allocations: 100.5 kB / 435.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2987, allocations: 0 / 435.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002678/0.299, allocations: 77.11 kB / 435.6 MB, free: 36.03 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.0001343/0.2991, allocations: 139.9 kB / 435.7 MB, free: 35.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004596/0.2996, allocations: 308.1 kB / 436 MB, free: 35.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2996, allocations: 0 / 436 MB, free: 35.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004457/0.3, allocations: 0.723 MB / 436.7 MB, free: 35.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.3004, allocations: 63.08 kB / 436.8 MB, free: 35.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008627/0.3012, allocations: 442.8 kB / 437.2 MB, free: 35.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000112/0.3014, allocations: 0.718 MB / 437.9 MB, free: 34.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000101/0.3015, allocations: 29.66 kB / 438 MB, free: 34.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.3016, allocations: 42.45 kB / 438 MB, free: 34.37 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3016, allocations: 0 / 438 MB, free: 34.37 MB / 350.1 MB Notification: Performance of Templates: time 0.006236/0.3078, allocations: 3.668 MB / 441.7 MB, free: 34.12 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