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.001601/0.001601, allocations: 113.7 kB / 17.09 MB, free: 5.965 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.001921/0.001922, allocations: 195.8 kB / 18.03 MB, free: 5.043 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.318/1.318, 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.06205/0.06205, allocations: 14.17 MB / 285.4 MB, free: 13.85 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.001438/0.001438, allocations: 67.84 kB / 399.3 MB, free: 43.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07237/0.07382, 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.002212/0.07607, allocations: 1.439 MB / 450.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009029/0.07699, allocations: 0.527 MB / 451.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.77e-05/0.07704, allocations: 3.938 kB / 451.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.063e-05/0.07708, allocations: 7.922 kB / 451.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.269e-05/0.07715, allocations: 15.86 kB / 451.4 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001835/0.07734, allocations: 71.83 kB / 451.5 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001696/0.07752, allocations: 191.7 kB / 451.7 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.706e-05/0.07758, allocations: 7.938 kB / 451.7 MB, free: 9.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.07769, allocations: 99.72 kB / 451.8 MB, free: 9.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.07781, allocations: 91.72 kB / 451.9 MB, free: 9.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.668e-05/0.07785, allocations: 12 kB / 451.9 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.651e-05/0.07788, allocations: 12 kB / 451.9 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.319e-05/0.07794, allocations: 59.84 kB / 452 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.845e-05/0.07803, allocations: 75.73 kB / 452.1 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001472/0.07819, allocations: 131.6 kB / 452.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.0782, allocations: 0 / 452.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.0782, allocations: 0 / 452.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.967e-06/0.07821, allocations: 8 kB / 452.2 MB, free: 9.422 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.0009285/0.07915, allocations: 0.5497 MB / 452.7 MB, free: 8.824 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.07919, allocations: 8.031 kB / 452.7 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.285e-05/0.07928, allocations: 20.84 kB / 452.8 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.07941, allocations: 172.3 kB / 452.9 MB, free: 8.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.204e-05/0.07944, allocations: 16.36 kB / 452.9 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.878e-05/0.07951, allocations: 32.34 kB / 453 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005422/0.08006, allocations: 381.3 kB / 453.4 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.08008, allocations: 4 kB / 453.4 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.109e-05/0.08013, allocations: 11.98 kB / 453.4 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.08014, allocations: 3.938 kB / 453.4 MB, free: 8.145 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/0.08034, allocations: 67.94 kB / 453.4 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003605/0.0807, allocations: 372.6 kB / 453.8 MB, free: 7.664 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002516/0.08096, allocations: 170.6 kB / 454 MB, free: 7.488 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002303/0.0812, allocations: 164.8 kB / 454.1 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.224e-05/0.08122, allocations: 4 kB / 454.1 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007002/0.08193, allocations: 0.5259 MB / 454.7 MB, free: 6.781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.773e-06/0.08194, allocations: 0 / 454.7 MB, free: 6.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.000933/0.08288, allocations: 0.651 MB / 455.3 MB, free: 6.125 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.08292, allocations: 55.41 kB / 455.4 MB, free: 6.059 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.084e-05/0.08302, allocations: 125.8 kB / 455.5 MB, free: 5.926 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.425e-05/0.08307, allocations: 45.69 kB / 455.5 MB, free: 5.875 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.652e-05/0.08312, allocations: 88.7 kB / 455.6 MB, free: 5.785 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.979e-05/0.08319, allocations: 75.19 kB / 455.7 MB, free: 5.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.504e-05/0.08328, allocations: 65.62 kB / 455.8 MB, free: 5.641 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.08338, allocations: 330.8 kB / 456.1 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.08353, allocations: 84.3 kB / 456.2 MB, free: 5.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.08372, allocations: 151.4 kB / 456.3 MB, free: 5.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003182/0.08404, allocations: 237.7 kB / 456.5 MB, free: 4.801 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.08405, allocations: 0 / 456.5 MB, free: 4.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003448/0.0844, allocations: 245.2 kB / 456.8 MB, free: 4.555 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.08442, allocations: 4 kB / 456.8 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.08443, allocations: 0 / 456.8 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.08445, allocations: 8.125 kB / 456.8 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.074e-05/0.08454, allocations: 15.92 kB / 456.8 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.08455, allocations: 7.984 kB / 456.8 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002128/0.08477, allocations: 43.89 kB / 456.9 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.856e-05/0.0848, allocations: 8 kB / 456.9 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.0001748/0.08498, allocations: 165 kB / 457 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.337e-05/0.08504, allocations: 23.89 kB / 457.1 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.116e-05/0.08511, allocations: 37.56 kB / 457.1 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.08512, allocations: 0 / 457.1 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.08513, allocations: 7.984 kB / 457.1 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.08514, allocations: 4.031 kB / 457.1 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002261/0.08537, allocations: 273.4 kB / 457.4 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.08538, allocations: 0 / 457.4 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.949e-05/0.08542, allocations: 11.94 kB / 457.4 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.08543, allocations: 4 kB / 457.4 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.807e-05/0.08547, allocations: 31.94 kB / 457.4 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.08548, allocations: 4 kB / 457.4 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.08548, allocations: 0 / 457.4 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.0867, allocations: 1.513 MB / 458.9 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.08685, allocations: 120.8 kB / 459 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.639e-05/0.08693, allocations: 31.89 kB / 459.1 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002227/0.08716, allocations: 35.95 kB / 459.1 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001857/0.08736, allocations: 87.83 kB / 459.2 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.755e-05/0.08741, allocations: 43.95 kB / 459.2 MB, free: 1.949 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.13e-05/0.08747, allocations: 95.27 kB / 459.3 MB, free: 1.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.502e-06/0.08747, allocations: 0 / 459.3 MB, free: 1.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004013/0.08788, allocations: 79.92 kB / 459.4 MB, free: 1.777 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.0001471/0.08804, allocations: 137.5 kB / 459.5 MB, free: 1.633 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004701/0.08851, allocations: 287.8 kB / 459.8 MB, free: 1.352 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.08852, allocations: 0 / 459.8 MB, free: 1.352 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005657/0.08909, allocations: 0.7264 MB / 460.6 MB, free: 0.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003011/0.0894, allocations: 52.83 kB / 460.6 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.09047, allocations: 0.6294 MB / 461.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002328/0.09071, allocations: 0.7254 MB / 462 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.09084, allocations: 43.39 kB / 462 MB, free: 15.11 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09085, allocations: 0 / 462 MB, free: 15.11 MB / 350.1 MB Notification: Performance of Templates: time 0.00389/0.09474, allocations: 2.608 MB / 464.6 MB, free: 12.51 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