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.001251/0.001251, allocations: 109.8 kB / 16.41 MB, free: 6.465 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.001219/0.001219, allocations: 190.7 kB / 17.35 MB, free: 5.715 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.283/1.283, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07511/0.07511, allocations: 16.77 MB / 308 MB, free: 14.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 63.91 kB / 428.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08311/0.08439, allocations: 53.55 MB / 482.3 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002349/0.08677, allocations: 1.435 MB / 483.7 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000912/0.0877, allocations: 498.8 kB / 484.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.718e-05/0.08777, allocations: 4 kB / 484.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.091e-05/0.0878, allocations: 7.922 kB / 484.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.481e-05/0.08789, allocations: 11.88 kB / 484.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001991/0.0881, allocations: 79.81 kB / 484.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000201/0.08831, allocations: 195.6 kB / 484.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.432e-05/0.08837, allocations: 4 kB / 484.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.0885, allocations: 87.86 kB / 484.6 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.08864, allocations: 99.64 kB / 484.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.148e-05/0.08869, allocations: 12 kB / 484.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.455e-05/0.08873, allocations: 12 kB / 484.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.473e-05/0.08879, allocations: 59.8 kB / 484.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.0889, allocations: 79.78 kB / 484.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001592/0.08906, allocations: 127.6 kB / 485 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.08907, allocations: 0 / 485 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.08908, allocations: 4 kB / 485 MB, free: 0.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.08909, allocations: 0 / 485 MB, free: 0.75 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.0009267/0.09002, allocations: 0.5496 MB / 485.6 MB, free: 156 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.09007, allocations: 12.03 kB / 485.6 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.824e-05/0.09017, allocations: 24.83 kB / 485.6 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001338/0.09031, allocations: 180.3 kB / 485.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.09034, allocations: 20.3 kB / 485.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.242e-05/0.09041, allocations: 20.36 kB / 485.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005405/0.09096, allocations: 377.4 kB / 486.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.09097, allocations: 0 / 486.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.444e-05/0.09103, allocations: 19.97 kB / 486.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.09104, allocations: 0 / 486.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000196/0.09124, allocations: 67.94 kB / 486.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000376/0.09163, allocations: 376.5 kB / 486.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000253/0.09189, allocations: 170.5 kB / 486.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002278/0.09212, allocations: 160.8 kB / 487 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.09214, allocations: 0 / 487 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007076/0.09285, allocations: 0.5327 MB / 487.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.663e-06/0.09287, allocations: 0 / 487.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009153/0.09379, allocations: 0.6534 MB / 488.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.09383, allocations: 55.41 kB / 488.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.352e-05/0.09393, allocations: 129.2 kB / 488.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.456e-05/0.09399, allocations: 49.64 kB / 488.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.086e-05/0.09404, allocations: 96.59 kB / 488.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.178e-05/0.09411, allocations: 75.22 kB / 488.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.781e-05/0.0942, allocations: 53.7 kB / 488.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.09431, allocations: 326.8 kB / 488.9 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001412/0.09446, allocations: 92.16 kB / 489 MB, free: 12.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.09464, allocations: 151.5 kB / 489.1 MB, free: 12.37 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003191/0.09497, allocations: 229.8 kB / 489.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.09498, allocations: 0 / 489.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003463/0.09533, allocations: 249 kB / 489.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.09536, allocations: 11.94 kB / 489.6 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.09537, allocations: 0 / 489.6 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.09538, allocations: 4 kB / 489.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.496e-05/0.09547, allocations: 15.92 kB / 489.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.09549, allocations: 7.984 kB / 489.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002176/0.09571, allocations: 39.88 kB / 489.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.09574, allocations: 8.125 kB / 489.7 MB, free: 11.79 MB / 366.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.0001791/0.09592, allocations: 165.5 kB / 489.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.593e-05/0.09599, allocations: 27.8 kB / 489.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.201e-05/0.09607, allocations: 33.62 kB / 489.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.09609, allocations: 3.984 kB / 489.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.09609, allocations: 0 / 489.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.09623, allocations: 116.9 kB / 490 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.041e-05/0.09632, allocations: 27.97 kB / 490.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002234/0.09655, allocations: 39.94 kB / 490.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/0.09675, allocations: 91.77 kB / 490.2 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008159/0.09757, allocations: 0.6032 MB / 490.8 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007384/0.09832, allocations: 0.7015 MB / 491.5 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005389/0.09887, allocations: 0.703 MB / 492.2 MB, free: 9.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.806e-05/0.09892, allocations: 95.27 kB / 492.3 MB, free: 9.137 MB / 366.1 MB Notification: Performance of Backend: time 3.51e-07/0.09893, allocations: 0 / 492.3 MB, free: 9.137 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005629/0.0995, allocations: 254.2 kB / 492.5 MB, free: 8.883 MB / 366.1 MB Notification: Performance of SimCode: time 0.000631/0.1001, allocations: 0.692 MB / 493.2 MB, free: 8.145 MB / 366.1 MB Notification: Performance of Templates: time 0.006776/0.1069, allocations: 3.782 MB / 497 MB, free: 4.371 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=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/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