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.001491/0.001491, allocations: 111.4 kB / 15.99 MB, free: 5.914 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.001671/0.001671, allocations: 187.3 kB / 16.91 MB, free: 5.758 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.301/1.301, allocations: 205.1 MB / 222.8 MB, free: 12.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06072/0.06072, allocations: 14.16 MB / 284.3 MB, free: 14.1 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.001399/0.001399, allocations: 67.91 kB / 346.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2384, allocations: 50.11 MB / 396.7 MB, free: 48.4 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002491/0.241, allocations: 1.501 MB / 398.2 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008786/0.2419, allocations: 0.5385 MB / 398.8 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.457e-05/0.2419, allocations: 0.9688 kB / 398.8 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.121e-05/0.242, allocations: 3.938 kB / 398.8 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.751e-05/0.2421, allocations: 13.05 kB / 398.8 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001792/0.2423, allocations: 63.52 kB / 398.8 MB, free: 46.72 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001732/0.2424, allocations: 184.7 kB / 399 MB, free: 46.63 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.499e-05/0.2425, allocations: 7.422 kB / 399 MB, free: 46.63 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.2426, allocations: 96.55 kB / 399.1 MB, free: 46.58 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.2427, allocations: 91.23 kB / 399.2 MB, free: 46.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.049e-05/0.2428, allocations: 17.27 kB / 399.2 MB, free: 46.51 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.424e-05/0.2428, allocations: 12.38 kB / 399.2 MB, free: 46.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.257e-05/0.2429, allocations: 55.75 kB / 399.3 MB, free: 46.47 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.243, allocations: 88.78 kB / 399.4 MB, free: 46.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000106/0.2431, allocations: 76.53 kB / 399.5 MB, free: 46.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2431, allocations: 1.375 kB / 399.5 MB, free: 46.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2431, allocations: 0 / 399.5 MB, free: 46.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.2432, allocations: 0 / 399.5 MB, free: 46.36 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.0009307/0.2441, allocations: 0.5595 MB / 400 MB, free: 45.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.2441, allocations: 9.344 kB / 400 MB, free: 45.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.2442, allocations: 23.58 kB / 400 MB, free: 45.85 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.872e-05/0.2443, allocations: 176.9 kB / 400.2 MB, free: 45.64 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.2444, allocations: 15.58 kB / 400.2 MB, free: 45.63 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.478e-05/0.2445, allocations: 26.09 kB / 400.3 MB, free: 45.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005194/0.245, allocations: 380.9 kB / 400.6 MB, free: 45.35 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.245, allocations: 3.984 kB / 400.6 MB, free: 45.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.801e-05/0.245, allocations: 17.55 kB / 400.7 MB, free: 45.33 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.2451, allocations: 1.25 kB / 400.7 MB, free: 45.33 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001768/0.2452, allocations: 71.12 kB / 400.7 MB, free: 45.3 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003312/0.2456, allocations: 370.8 kB / 401.1 MB, free: 44.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002365/0.2458, allocations: 173.3 kB / 401.3 MB, free: 44.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002125/0.246, allocations: 157.1 kB / 401.4 MB, free: 44.74 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.352e-05/0.2461, allocations: 5.156 kB / 401.4 MB, free: 44.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007013/0.2468, allocations: 0.5224 MB / 401.9 MB, free: 44.4 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.874e-06/0.2468, allocations: 0 / 401.9 MB, free: 44.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009834/0.2478, allocations: 0.6532 MB / 402.6 MB, free: 44.05 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.2478, allocations: 59.16 kB / 402.6 MB, free: 43.99 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.558e-05/0.2479, allocations: 126.6 kB / 402.8 MB, free: 43.88 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.093e-05/0.248, allocations: 45.62 kB / 402.8 MB, free: 43.83 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.047e-05/0.248, allocations: 95.27 kB / 402.9 MB, free: 43.74 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.058e-05/0.2481, allocations: 77.3 kB / 403 MB, free: 43.67 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.801e-05/0.2482, allocations: 55.61 kB / 403 MB, free: 43.63 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.545e-05/0.2482, allocations: 326.4 kB / 403.4 MB, free: 43.31 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.2484, allocations: 88.73 kB / 403.4 MB, free: 43.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.2485, allocations: 162.1 kB / 403.6 MB, free: 43.14 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003151/0.2489, allocations: 237.4 kB / 403.8 MB, free: 42.99 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.2489, allocations: 1.438 kB / 403.8 MB, free: 42.99 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000344/0.2492, allocations: 237.6 kB / 404.1 MB, free: 42.87 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.2492, allocations: 5.156 kB / 404.1 MB, free: 42.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.617e-06/0.2493, allocations: 2.125 kB / 404.1 MB, free: 42.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.2493, allocations: 10 kB / 404.1 MB, free: 42.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.684e-05/0.2494, allocations: 21.3 kB / 404.1 MB, free: 42.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.2494, allocations: 3.5 kB / 404.1 MB, free: 42.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002163/0.2496, allocations: 47.05 kB / 404.2 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.233e-05/0.2497, allocations: 8.469 kB / 404.2 MB, free: 42.82 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.000184/0.2498, allocations: 157.1 kB / 404.3 MB, free: 42.67 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.166e-05/0.2499, allocations: 25.19 kB / 404.3 MB, free: 42.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.049e-05/0.25, allocations: 36.23 kB / 404.4 MB, free: 42.63 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.25, allocations: 2.781 kB / 404.4 MB, free: 42.63 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.25, allocations: 4 kB / 404.4 MB, free: 42.63 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.25, allocations: 1.406 kB / 404.4 MB, free: 42.63 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001991/0.2502, allocations: 285.5 kB / 404.7 MB, free: 42.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2502, allocations: 0 / 404.7 MB, free: 42.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.116e-05/0.2503, allocations: 11.52 kB / 404.7 MB, free: 42.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2503, allocations: 1.219 kB / 404.7 MB, free: 42.33 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.905e-05/0.2503, allocations: 28.2 kB / 404.7 MB, free: 42.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.2503, allocations: 1.188 kB / 404.7 MB, free: 42.31 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2503, allocations: 5.406 kB / 404.7 MB, free: 42.31 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006724/0.251, allocations: 0.5574 MB / 405.3 MB, free: 41.99 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.2511, allocations: 116.7 kB / 405.4 MB, free: 41.87 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.611e-05/0.2512, allocations: 22.69 kB / 405.4 MB, free: 41.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.2514, allocations: 49.44 kB / 405.4 MB, free: 41.83 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002112/0.2517, allocations: 79.16 kB / 405.5 MB, free: 41.78 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.136e-05/0.2517, allocations: 44.2 kB / 405.6 MB, free: 41.76 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.171e-05/0.2518, allocations: 98.92 kB / 405.7 MB, free: 41.67 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.41e-07/0.2518, allocations: 0 / 405.7 MB, free: 41.67 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002975/0.2521, allocations: 82.89 kB / 405.7 MB, free: 41.65 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.0001499/0.2522, allocations: 133.7 kB / 405.9 MB, free: 41.54 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005243/0.2528, allocations: 314.1 kB / 406.2 MB, free: 41.39 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2528, allocations: 0 / 406.2 MB, free: 41.39 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005066/0.2533, allocations: 0.7238 MB / 406.9 MB, free: 40.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003095/0.2536, allocations: 58.09 kB / 407 MB, free: 40.86 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009073/0.2545, allocations: 491.8 kB / 407.4 MB, free: 40.5 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001379/0.2547, allocations: 0.715 MB / 408.2 MB, free: 39.79 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.2548, allocations: 40.53 kB / 408.2 MB, free: 39.77 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2548, allocations: 3.938 kB / 408.2 MB, free: 39.76 MB / 318.1 MB Notification: Performance of Templates: time 0.003483/0.2583, allocations: 2.581 MB / 410.8 MB, free: 37.26 MB / 318.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","../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches