Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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_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_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.001272/0.001272, allocations: 116.1 kB / 16.42 MB, free: 6.496 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.001269/0.001269, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.292/1.292, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06439/0.06439, allocations: 14.17 MB / 284.8 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.00142/0.00142, allocations: 73.55 kB / 398.7 MB, free: 43.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07122/0.07265, allocations: 50.13 MB / 448.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002254/0.07494, allocations: 1.438 MB / 450.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008987/0.07586, allocations: 0.5368 MB / 450.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.767e-05/0.07591, allocations: 0 / 450.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.196e-05/0.07597, allocations: 3.938 kB / 450.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.342e-05/0.07604, allocations: 7.875 kB / 450.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001927/0.07624, allocations: 79.83 kB / 450.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001758/0.07643, allocations: 183.6 kB / 451 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.086e-05/0.07648, allocations: 11.94 kB / 451 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001137/0.0766, allocations: 107.7 kB / 451.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.07672, allocations: 87.73 kB / 451.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.407e-05/0.07677, allocations: 12 kB / 451.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.145e-05/0.07681, allocations: 12 kB / 451.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.497e-05/0.07687, allocations: 55.84 kB / 451.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.414e-05/0.07697, allocations: 79.78 kB / 451.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001545/0.07713, allocations: 131.6 kB / 451.5 MB, free: 9.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.07714, allocations: 0 / 451.5 MB, free: 9.449 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.07715, allocations: 0 / 451.5 MB, free: 9.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.07715, allocations: 0 / 451.5 MB, free: 9.449 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.0009736/0.07813, allocations: 0.5497 MB / 452.1 MB, free: 8.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.07817, allocations: 8.031 kB / 452.1 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.263e-05/0.07827, allocations: 28.77 kB / 452.1 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.07841, allocations: 176.2 kB / 452.3 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/0.07844, allocations: 12.36 kB / 452.3 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.785e-05/0.07853, allocations: 32.34 kB / 452.3 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005551/0.07909, allocations: 381.4 kB / 452.7 MB, free: 8.184 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.0791, allocations: 3.938 kB / 452.7 MB, free: 8.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.862e-05/0.07916, allocations: 7.984 kB / 452.7 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.07917, allocations: 0 / 452.7 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001916/0.07936, allocations: 71.88 kB / 452.8 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003793/0.07975, allocations: 376.5 kB / 453.1 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002582/0.08002, allocations: 174.5 kB / 453.3 MB, free: 7.504 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002293/0.08025, allocations: 161.1 kB / 453.5 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.08027, allocations: 11.94 kB / 453.5 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000682/0.08096, allocations: 0.5102 MB / 454 MB, free: 6.809 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.513e-06/0.08097, allocations: 4 kB / 454 MB, free: 6.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001006/0.08198, allocations: 0.651 MB / 454.6 MB, free: 6.148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.08203, allocations: 59.39 kB / 454.7 MB, free: 6.078 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.08214, allocations: 133.3 kB / 454.8 MB, free: 5.941 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.83e-05/0.0822, allocations: 45.69 kB / 454.9 MB, free: 5.891 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.189e-05/0.08226, allocations: 84.7 kB / 455 MB, free: 5.805 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.872e-05/0.08232, allocations: 75.19 kB / 455 MB, free: 5.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.29e-05/0.08241, allocations: 53.7 kB / 455.1 MB, free: 5.672 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.08252, allocations: 330.8 kB / 455.4 MB, free: 5.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/0.08267, allocations: 84.3 kB / 455.5 MB, free: 5.254 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.08286, allocations: 159.3 kB / 455.6 MB, free: 5.074 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003195/0.08319, allocations: 237.6 kB / 455.9 MB, free: 4.824 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.0832, allocations: 3.938 kB / 455.9 MB, free: 4.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003464/0.08355, allocations: 241.2 kB / 456.1 MB, free: 4.578 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.08357, allocations: 4 kB / 456.1 MB, free: 4.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.08358, allocations: 0 / 456.1 MB, free: 4.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.0836, allocations: 4 kB / 456.1 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.564e-05/0.08369, allocations: 27.98 kB / 456.1 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.605e-06/0.0837, allocations: 4 kB / 456.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002102/0.08392, allocations: 35.95 kB / 456.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.08395, allocations: 12 kB / 456.2 MB, free: 4.492 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.0001818/0.08414, allocations: 175.7 kB / 456.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.852e-05/0.08419, allocations: 19.91 kB / 456.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.76e-05/0.08428, allocations: 37.61 kB / 456.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.08429, allocations: 0 / 456.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.08429, allocations: 0 / 456.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/0.08443, allocations: 116.8 kB / 456.5 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.891e-05/0.08452, allocations: 31.95 kB / 456.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002181/0.08474, allocations: 43.94 kB / 456.6 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.08493, allocations: 83.78 kB / 456.7 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008271/0.08576, allocations: 0.6181 MB / 457.3 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007124/0.08649, allocations: 0.6898 MB / 458 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005418/0.08704, allocations: 0.6996 MB / 458.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.695e-05/0.08711, allocations: 95.27 kB / 458.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of Backend: time 1.7e-07/0.08712, allocations: 0 / 458.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005592/0.08768, allocations: 266.2 kB / 459.1 MB, free: 1.574 MB / 334.1 MB Notification: Performance of SimCode: time 0.0006107/0.08831, allocations: 0.6956 MB / 459.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of Templates: time 0.006473/0.0948, allocations: 3.767 MB / 463.5 MB, free: 13.07 MB / 350.1 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_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_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches