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.001327/0.001327, allocations: 106.3 kB / 16.41 MB, free: 5.973 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.001349/0.001349, allocations: 186.9 kB / 17.34 MB, free: 5.586 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.304/1.304, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06309/0.06309, allocations: 14.18 MB / 284.8 MB, free: 13.84 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.00143/0.00143, allocations: 63.28 kB / 398.6 MB, free: 43.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06957/0.07101, allocations: 50.14 MB / 448.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002462/0.07351, allocations: 1.438 MB / 450.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009519/0.07449, allocations: 0.5348 MB / 450.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.153e-05/0.07456, allocations: 0 / 450.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.951e-05/0.0746, allocations: 7.922 kB / 450.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.602e-05/0.07469, allocations: 11.88 kB / 450.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002038/0.0749, allocations: 75.81 kB / 450.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001863/0.07509, allocations: 187.6 kB / 451 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.144e-05/0.07515, allocations: 11.94 kB / 451 MB, free: 9.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.07528, allocations: 95.73 kB / 451.1 MB, free: 9.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001263/0.07541, allocations: 95.7 kB / 451.2 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.95e-05/0.07546, allocations: 12 kB / 451.2 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.277e-05/0.0755, allocations: 16 kB / 451.3 MB, free: 9.684 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.322e-05/0.07556, allocations: 47.92 kB / 451.3 MB, free: 9.637 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.543e-05/0.07566, allocations: 79.72 kB / 451.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001631/0.07582, allocations: 135.6 kB / 451.5 MB, free: 9.426 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.07584, allocations: 0 / 451.5 MB, free: 9.426 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.07584, allocations: 0 / 451.5 MB, free: 9.426 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.07585, allocations: 0 / 451.5 MB, free: 9.426 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.001015/0.07687, allocations: 0.5536 MB / 452.1 MB, free: 8.824 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.07691, allocations: 8.031 kB / 452.1 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.07702, allocations: 24.83 kB / 452.1 MB, free: 8.793 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001264/0.07716, allocations: 176.2 kB / 452.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.554e-05/0.07719, allocations: 12.36 kB / 452.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.835e-05/0.07726, allocations: 24.36 kB / 452.3 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005768/0.07785, allocations: 381.3 kB / 452.7 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.07786, allocations: 0 / 452.7 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.226e-05/0.07793, allocations: 19.97 kB / 452.7 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.07794, allocations: 0 / 452.7 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001837/0.07813, allocations: 75.81 kB / 452.8 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003919/0.07853, allocations: 364.6 kB / 453.1 MB, free: 7.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000279/0.07882, allocations: 178.5 kB / 453.3 MB, free: 7.484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002335/0.07906, allocations: 161.1 kB / 453.5 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.07908, allocations: 3.938 kB / 453.5 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007748/0.07986, allocations: 0.5219 MB / 454 MB, free: 6.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.774e-06/0.07987, allocations: 0 / 454 MB, free: 6.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009664/0.08085, allocations: 0.6549 MB / 454.6 MB, free: 6.125 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.0809, allocations: 55.41 kB / 454.7 MB, free: 6.059 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.08101, allocations: 133.8 kB / 454.8 MB, free: 5.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.819e-05/0.08107, allocations: 37.7 kB / 454.9 MB, free: 5.875 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.757e-05/0.08113, allocations: 92.69 kB / 455 MB, free: 5.781 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.69e-05/0.08121, allocations: 79.19 kB / 455 MB, free: 5.703 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.969e-05/0.0813, allocations: 49.7 kB / 455.1 MB, free: 5.648 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.08143, allocations: 334.8 kB / 455.4 MB, free: 5.312 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001514/0.08159, allocations: 88.3 kB / 455.5 MB, free: 5.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001921/0.08178, allocations: 151.4 kB / 455.6 MB, free: 5.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000332/0.08212, allocations: 237.6 kB / 455.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.08213, allocations: 0 / 455.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003559/0.0825, allocations: 241.2 kB / 456.1 MB, free: 4.559 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.08252, allocations: 8 kB / 456.1 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.08253, allocations: 0 / 456.1 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.08255, allocations: 7.938 kB / 456.1 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.78e-05/0.08266, allocations: 23.86 kB / 456.1 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.455e-06/0.08267, allocations: 4 kB / 456.1 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/0.0829, allocations: 31.97 kB / 456.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.57e-05/0.08293, allocations: 16.12 kB / 456.2 MB, free: 4.469 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.0001845/0.08313, allocations: 157.4 kB / 456.3 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.403e-05/0.08319, allocations: 23.89 kB / 456.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.667e-05/0.08328, allocations: 29.62 kB / 456.4 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.0833, allocations: 7.938 kB / 456.4 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.08331, allocations: 4 kB / 456.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.08332, allocations: 4.031 kB / 456.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002402/0.08356, allocations: 289.4 kB / 456.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.08357, allocations: 0 / 456.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.306e-05/0.08361, allocations: 7.938 kB / 456.7 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.08362, allocations: 0 / 456.7 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.179e-05/0.08367, allocations: 31.94 kB / 456.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.08367, allocations: 0 / 456.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.08368, allocations: 0 / 456.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007129/0.0844, allocations: 0.5673 MB / 457.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.08455, allocations: 120.8 kB / 457.4 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.252e-05/0.08464, allocations: 27.95 kB / 457.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002414/0.0849, allocations: 35.95 kB / 457.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/0.0851, allocations: 91.83 kB / 457.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.562e-05/0.08516, allocations: 43.95 kB / 457.6 MB, free: 2.945 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.849e-05/0.08522, allocations: 98.64 kB / 457.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08523, allocations: 0 / 457.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002994/0.08554, allocations: 79.98 kB / 457.8 MB, free: 2.773 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.0001656/0.08571, allocations: 133.4 kB / 457.9 MB, free: 2.633 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004907/0.08621, allocations: 291.8 kB / 458.2 MB, free: 2.348 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.08622, allocations: 0 / 458.2 MB, free: 2.348 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000592/0.08682, allocations: 0.7225 MB / 458.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000339/0.08716, allocations: 56.61 kB / 459 MB, free: 1.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009937/0.08817, allocations: 476.9 kB / 459.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002363/0.08842, allocations: 0.7138 MB / 460.2 MB, free: 340 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.08856, allocations: 39.39 kB / 460.2 MB, free: 300 kB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.08857, allocations: 0 / 460.2 MB, free: 300 kB / 334.1 MB Notification: Performance of Templates: time 0.004659/0.09323, allocations: 2.605 MB / 462.8 MB, free: 13.7 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