Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_symb_jac_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_symb_jac_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_symb_jac_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.001511/0.001511, allocations: 120.5 kB / 17.1 MB, free: 5.98 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.001766/0.001766, allocations: 192.7 kB / 18.03 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.326/1.326, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06408/0.06408, allocations: 14.17 MB / 285.4 MB, free: 13.86 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 68.91 kB / 399.3 MB, free: 43.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06891/0.07035, allocations: 50.14 MB / 449.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002324/0.07271, allocations: 1.435 MB / 450.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009304/0.07366, allocations: 0.5329 MB / 451.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.381e-05/0.07372, allocations: 0 / 451.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.747e-05/0.07374, allocations: 3.938 kB / 451.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.563e-05/0.07386, allocations: 11.88 kB / 451.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002076/0.07407, allocations: 79.81 kB / 451.5 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002295/0.07431, allocations: 179.6 kB / 451.7 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.631e-05/0.07437, allocations: 11.92 kB / 451.7 MB, free: 9.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/0.0745, allocations: 103.7 kB / 451.8 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.07462, allocations: 87.73 kB / 451.9 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.283e-05/0.07467, allocations: 16 kB / 451.9 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.508e-05/0.07472, allocations: 19.94 kB / 451.9 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.006e-05/0.07478, allocations: 51.91 kB / 452 MB, free: 9.641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.07489, allocations: 79.72 kB / 452.1 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001674/0.07507, allocations: 135.6 kB / 452.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.07508, allocations: 0 / 452.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.07508, allocations: 0 / 452.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.07509, allocations: 0 / 452.2 MB, free: 9.43 MB / 334.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.0009649/0.07606, allocations: 0.5497 MB / 452.7 MB, free: 8.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.07611, allocations: 12.03 kB / 452.8 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.475e-05/0.07621, allocations: 20.83 kB / 452.8 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.07634, allocations: 180.2 kB / 453 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.07637, allocations: 8.359 kB / 453 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.397e-05/0.07644, allocations: 32.34 kB / 453 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005548/0.077, allocations: 381.4 kB / 453.4 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.07702, allocations: 0 / 453.4 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.002e-05/0.07707, allocations: 11.98 kB / 453.4 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.07708, allocations: 4 kB / 453.4 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001929/0.07728, allocations: 71.81 kB / 453.4 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003933/0.07768, allocations: 372.6 kB / 453.8 MB, free: 7.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002885/0.07798, allocations: 174.5 kB / 454 MB, free: 7.488 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002698/0.07826, allocations: 157.1 kB / 454.1 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.07828, allocations: 7.938 kB / 454.1 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008115/0.0791, allocations: 0.5258 MB / 454.7 MB, free: 6.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.963e-06/0.07911, allocations: 0 / 454.7 MB, free: 6.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009965/0.08011, allocations: 0.6471 MB / 455.3 MB, free: 6.133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.977e-05/0.08016, allocations: 55.41 kB / 455.4 MB, free: 6.066 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.08029, allocations: 141.6 kB / 455.5 MB, free: 5.922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.018e-05/0.08034, allocations: 45.69 kB / 455.6 MB, free: 5.871 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.994e-05/0.08041, allocations: 88.7 kB / 455.6 MB, free: 5.781 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.286e-05/0.08048, allocations: 75.19 kB / 455.7 MB, free: 5.707 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.683e-05/0.08057, allocations: 53.7 kB / 455.8 MB, free: 5.648 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.08069, allocations: 322.8 kB / 456.1 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/0.08085, allocations: 88.3 kB / 456.2 MB, free: 5.234 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001937/0.08105, allocations: 167.3 kB / 456.3 MB, free: 5.047 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/0.08139, allocations: 233.6 kB / 456.6 MB, free: 4.801 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.0814, allocations: 0 / 456.6 MB, free: 4.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003492/0.08175, allocations: 241.2 kB / 456.8 MB, free: 4.559 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.08178, allocations: 4 kB / 456.8 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.08179, allocations: 4 kB / 456.8 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.08181, allocations: 0 / 456.8 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.08192, allocations: 27.86 kB / 456.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.08194, allocations: 0 / 456.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000221/0.08217, allocations: 40.08 kB / 456.9 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.137e-05/0.08219, allocations: 12 kB / 456.9 MB, free: 4.473 MB / 334.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.0001805/0.08238, allocations: 157.4 kB / 457 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.8e-05/0.08244, allocations: 19.91 kB / 457.1 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.013e-05/0.08252, allocations: 37.61 kB / 457.1 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.08254, allocations: 7.938 kB / 457.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.08254, allocations: 0 / 457.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001414/0.08269, allocations: 116.9 kB / 457.2 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.168e-05/0.08278, allocations: 31.94 kB / 457.2 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.08301, allocations: 43.94 kB / 457.3 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/0.0832, allocations: 87.78 kB / 457.4 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000831/0.08404, allocations: 0.6064 MB / 458 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001392/0.08544, allocations: 1.767 MB / 459.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005725/0.08603, allocations: 0.7035 MB / 460.5 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.021e-05/0.08609, allocations: 95.27 kB / 460.5 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of Backend: time 4.71e-07/0.08609, allocations: 4 kB / 460.5 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005662/0.08666, allocations: 259 kB / 460.8 MB, free: 468 kB / 334.1 MB Notification: Performance of SimCode: time 0.0008791/0.08755, allocations: 1.045 MB / 461.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of Templates: time 0.00682/0.09439, allocations: 3.775 MB / 465.6 MB, free: 11.57 MB / 350.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_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_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches