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.0009857/0.0009857, allocations: 90.03 kB / 16.68 MB, free: 6.113 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.001229/0.001229, allocations: 178.6 kB / 17.58 MB, free: 5.828 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.253/1.253, allocations: 205.4 MB / 223.8 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06223/0.06223, allocations: 14.16 MB / 286.2 MB, free: 13.97 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.0004836/0.0004837, allocations: 19.91 kB / 349.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1909/0.1914, allocations: 51.1 MB / 400.5 MB, free: 48.2 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.00107/0.1925, allocations: 1.161 MB / 401.7 MB, free: 47.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006799/0.1932, allocations: 0.5372 MB / 402.2 MB, free: 46.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.46e-05/0.1932, allocations: 0 / 402.2 MB, free: 46.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.385e-05/0.1933, allocations: 0 / 402.2 MB, free: 46.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.932e-05/0.1933, allocations: 9.219 kB / 402.3 MB, free: 46.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001505/0.1935, allocations: 75.34 kB / 402.3 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.1936, allocations: 179.4 kB / 402.5 MB, free: 46.69 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.536e-05/0.1937, allocations: 4.469 kB / 402.5 MB, free: 46.69 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.513e-05/0.1938, allocations: 95.59 kB / 402.6 MB, free: 46.64 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.163e-05/0.1939, allocations: 95.34 kB / 402.7 MB, free: 46.57 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.68e-05/0.1939, allocations: 12.69 kB / 402.7 MB, free: 46.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3e-05/0.194, allocations: 12.31 kB / 402.7 MB, free: 46.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.453e-05/0.194, allocations: 55.91 kB / 402.8 MB, free: 46.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.226e-05/0.1941, allocations: 110.6 kB / 402.9 MB, free: 46.45 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 7.983e-05/0.1942, allocations: 84.73 kB / 403 MB, free: 46.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1942, allocations: 4 kB / 403 MB, free: 46.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1942, allocations: 0.9688 kB / 403 MB, free: 46.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.396e-06/0.1942, allocations: 0 / 403 MB, free: 46.38 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.0007126/0.195, allocations: 492.7 kB / 403.4 MB, free: 45.94 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/0.195, allocations: 8.344 kB / 403.5 MB, free: 45.94 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.882e-05/0.1951, allocations: 24.2 kB / 403.5 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.927e-05/0.1952, allocations: 181.3 kB / 403.7 MB, free: 45.72 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.1952, allocations: 18.75 kB / 403.7 MB, free: 45.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.775e-05/0.1953, allocations: 23.11 kB / 403.7 MB, free: 45.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004791/0.1958, allocations: 376.5 kB / 404.1 MB, free: 45.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.1958, allocations: 0 / 404.1 MB, free: 45.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.728e-05/0.1958, allocations: 12.89 kB / 404.1 MB, free: 45.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.1958, allocations: 1.344 kB / 404.1 MB, free: 45.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001654/0.196, allocations: 71.41 kB / 404.1 MB, free: 45.39 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002895/0.1963, allocations: 372.1 kB / 404.5 MB, free: 45.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00022/0.1965, allocations: 172.5 kB / 404.7 MB, free: 44.92 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002071/0.1967, allocations: 160.5 kB / 404.8 MB, free: 44.83 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.324e-06/0.1968, allocations: 4.969 kB / 404.8 MB, free: 44.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006208/0.1974, allocations: 0.5323 MB / 405.4 MB, free: 44.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.734e-06/0.1974, allocations: 0 / 405.4 MB, free: 44.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008482/0.1983, allocations: 0.6489 MB / 406 MB, free: 44.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.573e-05/0.1983, allocations: 59.72 kB / 406.1 MB, free: 44.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.904e-05/0.1984, allocations: 130 kB / 406.2 MB, free: 43.96 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.782e-05/0.1984, allocations: 45.44 kB / 406.3 MB, free: 43.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.776e-05/0.1984, allocations: 88.05 kB / 406.3 MB, free: 43.83 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.351e-05/0.1985, allocations: 77.92 kB / 406.4 MB, free: 43.76 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-05/0.1985, allocations: 32.08 kB / 406.4 MB, free: 43.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.918e-05/0.1986, allocations: 329.7 kB / 406.8 MB, free: 43.41 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001491/0.1987, allocations: 84.73 kB / 406.8 MB, free: 43.36 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/0.1989, allocations: 158.8 kB / 407 MB, free: 43.24 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002959/0.1992, allocations: 241.4 kB / 407.2 MB, free: 43.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.1992, allocations: 0 / 407.2 MB, free: 43.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003269/0.1996, allocations: 242.1 kB / 407.5 MB, free: 42.96 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.1996, allocations: 5.562 kB / 407.5 MB, free: 42.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.1996, allocations: 5.844 kB / 407.5 MB, free: 42.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.1996, allocations: 2.375 kB / 407.5 MB, free: 42.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.912e-05/0.1997, allocations: 25.33 kB / 407.5 MB, free: 42.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.1997, allocations: 6.625 kB / 407.5 MB, free: 42.94 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.1999, allocations: 46.77 kB / 407.6 MB, free: 42.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.991e-05/0.2, allocations: 11.91 kB / 407.6 MB, free: 42.91 MB / 318.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.0001434/0.2001, allocations: 157.4 kB / 407.7 MB, free: 42.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.661e-05/0.2002, allocations: 25.59 kB / 407.8 MB, free: 42.76 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.529e-05/0.2002, allocations: 39.8 kB / 407.8 MB, free: 42.72 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.2003, allocations: 3.281 kB / 407.8 MB, free: 42.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.2003, allocations: 0 / 407.8 MB, free: 42.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.2003, allocations: 0 / 407.8 MB, free: 42.72 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001701/0.2004, allocations: 282.3 kB / 408.1 MB, free: 42.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.2005, allocations: 3.938 kB / 408.1 MB, free: 42.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.992e-05/0.2005, allocations: 16.48 kB / 408.1 MB, free: 42.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2005, allocations: 1.031 kB / 408.1 MB, free: 42.42 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.537e-05/0.2005, allocations: 24.33 kB / 408.1 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.2005, allocations: 1.031 kB / 408.1 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2006, allocations: 0 / 408.1 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009426/0.2015, allocations: 1.281 MB / 409.4 MB, free: 41.4 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.2016, allocations: 112.9 kB / 409.5 MB, free: 41.28 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.246e-05/0.2017, allocations: 26.98 kB / 409.5 MB, free: 41.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/0.2019, allocations: 52.23 kB / 409.6 MB, free: 41.24 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/0.2021, allocations: 90.59 kB / 409.7 MB, free: 41.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.492e-05/0.2022, allocations: 44.61 kB / 409.7 MB, free: 41.16 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.676e-05/0.2022, allocations: 94.67 kB / 409.8 MB, free: 41.08 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2022, allocations: 0 / 409.8 MB, free: 41.08 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004103/0.2026, allocations: 75.45 kB / 409.9 MB, free: 41.07 MB / 318.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.0001124/0.2027, allocations: 132.1 kB / 410 MB, free: 40.96 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003916/0.2031, allocations: 304.1 kB / 410.3 MB, free: 40.69 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2031, allocations: 0 / 410.3 MB, free: 40.69 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004188/0.2036, allocations: 0.7263 MB / 411 MB, free: 39.96 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.2039, allocations: 61.48 kB / 411.1 MB, free: 39.91 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.2049, allocations: 0.655 MB / 411.8 MB, free: 39.21 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001119/0.205, allocations: 0.7296 MB / 412.5 MB, free: 38.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.2052, allocations: 35.41 kB / 412.5 MB, free: 38.42 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2052, allocations: 0 / 412.5 MB, free: 38.42 MB / 318.1 MB Notification: Performance of Templates: time 0.003137/0.2083, allocations: 2.567 MB / 415.1 MB, free: 35.86 MB / 318.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","../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches