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.008412/0.008412, allocations: 96.94 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.001675/0.001675, allocations: 191.7 kB / 16.67 MB, free: 6.391 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.459/1.459, allocations: 205.1 MB / 222.5 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06451/0.06451, allocations: 14.16 MB / 284.1 MB, free: 6.996 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.001887/0.001887, allocations: 68.47 kB / 398 MB, free: 14.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2573, allocations: 50.14 MB / 448.1 MB, free: 2.789 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002088/0.2595, allocations: 1.435 MB / 449.5 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008313/0.2603, allocations: 0.5279 MB / 450.1 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.521e-05/0.2604, allocations: 3.938 kB / 450.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.02e-05/0.2604, allocations: 3.938 kB / 450.1 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.537e-05/0.2605, allocations: 17.08 kB / 450.1 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001716/0.2607, allocations: 74.23 kB / 450.2 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001724/0.2608, allocations: 190.5 kB / 450.4 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.842e-05/0.2609, allocations: 10.41 kB / 450.4 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.261, allocations: 99.89 kB / 450.5 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001064/0.2611, allocations: 88.48 kB / 450.6 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.007e-05/0.2612, allocations: 12.38 kB / 450.6 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.492e-05/0.2612, allocations: 12.38 kB / 450.6 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.442e-05/0.2613, allocations: 56.22 kB / 450.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.239e-05/0.2614, allocations: 81.84 kB / 450.7 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.2615, allocations: 133.4 kB / 450.8 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2615, allocations: 0 / 450.8 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2615, allocations: 0 / 450.8 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.2615, allocations: 1.375 kB / 450.8 MB, free: 0.7617 MB / 318.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.0008365/0.2624, allocations: 0.5553 MB / 451.4 MB, free: 264 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.2624, allocations: 8.25 kB / 451.4 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.389e-05/0.2625, allocations: 24 kB / 451.4 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.88e-05/0.2626, allocations: 177.8 kB / 451.6 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.2626, allocations: 23.16 kB / 451.6 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.17e-05/0.2627, allocations: 22.23 kB / 451.6 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005844/0.2633, allocations: 384.9 kB / 452 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.2633, allocations: 4 kB / 452 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.338e-05/0.2634, allocations: 13.05 kB / 452 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.2634, allocations: 1.781 kB / 452 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001863/0.2636, allocations: 66.53 kB / 452.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004008/0.264, allocations: 368.1 kB / 452.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002633/0.2643, allocations: 180.5 kB / 452.6 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002448/0.2645, allocations: 165.2 kB / 452.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.2645, allocations: 1.062 kB / 452.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007554/0.2653, allocations: 0.5251 MB / 453.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.523e-06/0.2653, allocations: 4 kB / 453.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001004/0.2663, allocations: 0.6465 MB / 454 MB, free: 14.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.2664, allocations: 59.97 kB / 454 MB, free: 14.38 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.2665, allocations: 128.1 kB / 454.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.302e-05/0.2666, allocations: 44.81 kB / 454.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.976e-05/0.2666, allocations: 91.83 kB / 454.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.672e-05/0.2667, allocations: 78.62 kB / 454.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.2668, allocations: 54.7 kB / 454.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.267, allocations: 330.6 kB / 454.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.2672, allocations: 88.27 kB / 454.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002156/0.2674, allocations: 155.2 kB / 455 MB, free: 13.53 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004302/0.2678, allocations: 236.9 kB / 455.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.2678, allocations: 0 / 455.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000426/0.2683, allocations: 242.8 kB / 455.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.2683, allocations: 5.875 kB / 455.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.2683, allocations: 1 kB / 455.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.2683, allocations: 3.438 kB / 455.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.2684, allocations: 20.86 kB / 455.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.435e-05/0.2685, allocations: 3.125 kB / 455.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002352/0.2687, allocations: 50.97 kB / 455.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.497e-05/0.2687, allocations: 8.812 kB / 455.5 MB, free: 13.21 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.0002064/0.269, allocations: 160.8 kB / 455.7 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.034e-05/0.269, allocations: 24.88 kB / 455.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.294e-05/0.2691, allocations: 31.95 kB / 455.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.2691, allocations: 3.219 kB / 455.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.2691, allocations: 0 / 455.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2691, allocations: 1.219 kB / 455.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/0.2694, allocations: 274.4 kB / 456 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2694, allocations: 0 / 456 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.25e-05/0.2695, allocations: 15.98 kB / 456 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.2695, allocations: 1.219 kB / 456 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.368e-05/0.2695, allocations: 31.89 kB / 456.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.2695, allocations: 1.406 kB / 456.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2695, allocations: 0 / 456.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007941/0.2703, allocations: 0.5692 MB / 456.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001441/0.2705, allocations: 122.3 kB / 456.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.267e-05/0.2706, allocations: 22.66 kB / 456.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.2708, allocations: 44.81 kB / 456.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002005/0.271, allocations: 83.34 kB / 456.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-05/0.2711, allocations: 44.86 kB / 457 MB, free: 12.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.94e-05/0.2711, allocations: 97.17 kB / 457.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2711, allocations: 0.875 kB / 457.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.2714, allocations: 81.72 kB / 457.1 MB, free: 12.04 MB / 334.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.0001527/0.2716, allocations: 133.2 kB / 457.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000479/0.2721, allocations: 296.5 kB / 457.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2721, allocations: 4 kB / 457.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005948/0.2727, allocations: 0.7245 MB / 458.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.273, allocations: 54.64 kB / 458.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000926/0.2739, allocations: 436.4 kB / 458.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.2742, allocations: 0.7189 MB / 459.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001011/0.2743, allocations: 31.98 kB / 459.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.2745, allocations: 44.8 kB / 459.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2745, allocations: 3.938 kB / 459.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of Templates: time 0.006706/0.2812, allocations: 3.669 MB / 463.2 MB, free: 7.492 MB / 334.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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches