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) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 103.4 kB / 18.19 MB, free: 4.117 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002108/0.002108, allocations: 193.9 kB / 21.34 MB, free: 0.9766 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 207.6 MB / 231.9 MB, free: 3.215 MB / 174.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.07032/0.07032, allocations: 14.4 MB / 298.4 MB, free: 0.8867 MB / 238.1 MB [Timeout remaining time 90] 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=500,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=500,variableFilter="Ntap|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") [Timeout 660] 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.002212/0.002212, allocations: 75.88 kB / 420.7 MB, free: 4.754 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.2277, allocations: 52.87 MB / 473.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002624/0.2303, allocations: 1.425 MB / 475 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001046/0.2314, allocations: 0.5403 MB / 475.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.245e-05/0.2314, allocations: 0 / 475.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.131e-05/0.2315, allocations: 7.938 kB / 475.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.391e-05/0.2315, allocations: 15.86 kB / 475.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002053/0.2317, allocations: 75.83 kB / 475.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002087/0.232, allocations: 191.6 kB / 475.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.408e-05/0.232, allocations: 7.938 kB / 475.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.2321, allocations: 95.83 kB / 475.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.2322, allocations: 87.73 kB / 476 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.756e-05/0.2323, allocations: 12 kB / 476 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.298e-05/0.2323, allocations: 12 kB / 476 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.634e-05/0.2324, allocations: 59.78 kB / 476.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.2325, allocations: 75.78 kB / 476.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001817/0.2327, allocations: 135.4 kB / 476.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.2327, allocations: 4 kB / 476.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2327, allocations: 0 / 476.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.2327, allocations: 0 / 476.3 MB, free: 10.3 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.001013/0.2337, allocations: 0.5541 MB / 476.8 MB, free: 9.699 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.2337, allocations: 8.031 kB / 476.9 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.87e-05/0.2338, allocations: 24.88 kB / 476.9 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001594/0.234, allocations: 172.3 kB / 477 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.453e-05/0.234, allocations: 24.34 kB / 477.1 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.894e-05/0.2341, allocations: 24.34 kB / 477.1 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006155/0.2347, allocations: 385.3 kB / 477.5 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.2347, allocations: 0 / 477.5 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.41e-05/0.2348, allocations: 15.98 kB / 477.5 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.2348, allocations: 0 / 477.5 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001989/0.235, allocations: 67.94 kB / 477.6 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004603/0.2354, allocations: 376.5 kB / 477.9 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002269/0.2357, allocations: 86.52 kB / 478 MB, free: 8.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001898/0.2359, allocations: 72.8 kB / 478.1 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.617e-06/0.2359, allocations: 0 / 478.1 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008266/0.2367, allocations: 0.5221 MB / 478.6 MB, free: 7.828 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.643e-06/0.2367, allocations: 0 / 478.6 MB, free: 7.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001065/0.2378, allocations: 0.6512 MB / 479.2 MB, free: 7.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.2378, allocations: 59.34 kB / 479.3 MB, free: 7.102 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.2379, allocations: 133.8 kB / 479.4 MB, free: 6.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/0.238, allocations: 45.69 kB / 479.5 MB, free: 6.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.528e-05/0.2381, allocations: 88.7 kB / 479.6 MB, free: 6.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.056e-05/0.2381, allocations: 75.56 kB / 479.6 MB, free: 6.746 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.854e-05/0.2382, allocations: 57.7 kB / 479.7 MB, free: 6.684 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.2384, allocations: 330.8 kB / 480 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001636/0.2386, allocations: 88.28 kB / 480.1 MB, free: 6.262 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002175/0.2388, allocations: 155.4 kB / 480.3 MB, free: 6.086 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003674/0.2391, allocations: 237.7 kB / 480.5 MB, free: 5.836 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2391, allocations: 0 / 480.5 MB, free: 5.836 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003896/0.2395, allocations: 237.3 kB / 480.7 MB, free: 5.598 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.2396, allocations: 12.11 kB / 480.7 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.2396, allocations: 4 kB / 480.7 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.2396, allocations: 0 / 480.7 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.844e-05/0.2397, allocations: 19.94 kB / 480.8 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.2397, allocations: 0 / 480.8 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002221/0.2399, allocations: 43.84 kB / 480.8 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.318e-05/0.2399, allocations: 15.94 kB / 480.8 MB, free: 5.504 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.0002116/0.2401, allocations: 157.5 kB / 481 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.896e-05/0.2402, allocations: 31.89 kB / 481 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.232e-05/0.2403, allocations: 29.62 kB / 481 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.2403, allocations: 4 kB / 481 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2403, allocations: 3.938 kB / 481 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/0.2403, allocations: 0 / 481 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002903/0.2406, allocations: 273.4 kB / 481.3 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.2406, allocations: 0 / 481.3 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.394e-05/0.2406, allocations: 19.98 kB / 481.3 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.79e-06/0.2406, allocations: 4 kB / 481.3 MB, free: 4.926 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.039e-05/0.2407, allocations: 27.89 kB / 481.4 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.2407, allocations: 0 / 481.4 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.2407, allocations: 0 / 481.4 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007976/0.2415, allocations: 0.5712 MB / 481.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001484/0.2416, allocations: 120.9 kB / 482 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.596e-05/0.2417, allocations: 23.97 kB / 482.1 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.2419, allocations: 43.94 kB / 482.1 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/0.2421, allocations: 83.84 kB / 482.2 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.712e-05/0.2422, allocations: 39.95 kB / 482.2 MB, free: 3.984 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.109e-05/0.2422, allocations: 103.8 kB / 482.3 MB, free: 3.883 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2422, allocations: 0 / 482.3 MB, free: 3.883 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002994/0.2425, allocations: 75.97 kB / 482.4 MB, free: 3.809 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.0001641/0.2427, allocations: 137.4 kB / 482.5 MB, free: 3.668 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005208/0.2432, allocations: 279.8 kB / 482.8 MB, free: 3.395 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2432, allocations: 0 / 482.8 MB, free: 3.395 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002815/0.2435, allocations: 167.8 kB / 483 MB, free: 3.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.2438, allocations: 47.88 kB / 483 MB, free: 3.184 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001023/0.2448, allocations: 464.6 kB / 483.5 MB, free: 2.699 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.2452, allocations: 0.7179 MB / 484.2 MB, free: 1.953 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.2453, allocations: 39.41 kB / 484.2 MB, free: 1.914 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2453, allocations: 0 / 484.2 MB, free: 1.914 MB / 334.1 MB Notification: Performance of Templates: time 0.004671/0.25, allocations: 2.608 MB / 486.8 MB, free: 15.3 MB / 350.1 MB [Timeout remaining time 660] make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] [Timeout remaining time 660] Reference file matches