Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_dev_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_dev_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.001255/0.001255, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 195.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.239/1.239, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1707/0.1707, allocations: 16.78 MB / 307.2 MB, free: 14.85 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 63.91 kB / 373.2 MB, free: 2.227 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2471, allocations: 53.55 MB / 426.7 MB, free: 40.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002376/0.2495, allocations: 1.439 MB / 428.1 MB, free: 39.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008667/0.2504, allocations: 497.6 kB / 428.6 MB, free: 39.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.448e-05/0.2505, allocations: 2.406 kB / 428.6 MB, free: 39.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.086e-05/0.2505, allocations: 3.938 kB / 428.6 MB, free: 39.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.654e-05/0.2506, allocations: 18 kB / 428.7 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001992/0.2508, allocations: 80.3 kB / 428.7 MB, free: 39.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001367/0.251, allocations: 184.5 kB / 428.9 MB, free: 39.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.753e-05/0.251, allocations: 2.938 kB / 428.9 MB, free: 39.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.2511, allocations: 104.4 kB / 429 MB, free: 39.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.959e-05/0.2512, allocations: 87.52 kB / 429.1 MB, free: 39.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.694e-05/0.2513, allocations: 12.5 kB / 429.1 MB, free: 39.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.674e-05/0.2513, allocations: 10.28 kB / 429.1 MB, free: 39.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.594e-05/0.2514, allocations: 61.05 kB / 429.2 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.133e-05/0.2515, allocations: 75.55 kB / 429.3 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.2516, allocations: 129.6 kB / 429.4 MB, free: 39.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2516, allocations: 0 / 429.4 MB, free: 39.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.2516, allocations: 6.844 kB / 429.4 MB, free: 39.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.2516, allocations: 0 / 429.4 MB, free: 39.34 MB / 350.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.0008267/0.2525, allocations: 0.5602 MB / 429.9 MB, free: 38.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.2525, allocations: 15.78 kB / 430 MB, free: 38.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.2526, allocations: 20.86 kB / 430 MB, free: 38.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.145e-05/0.2527, allocations: 170 kB / 430.2 MB, free: 38.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.746e-05/0.2527, allocations: 17.89 kB / 430.2 MB, free: 38.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.975e-05/0.2528, allocations: 24.66 kB / 430.2 MB, free: 38.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004793/0.2533, allocations: 380 kB / 430.6 MB, free: 38.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.2533, allocations: 3.984 kB / 430.6 MB, free: 38.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.968e-05/0.2534, allocations: 15.17 kB / 430.6 MB, free: 38.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.2534, allocations: 3.938 kB / 430.6 MB, free: 38.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001689/0.2536, allocations: 68.33 kB / 430.7 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000326/0.2539, allocations: 369.7 kB / 431 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002264/0.2541, allocations: 170.5 kB / 431.2 MB, free: 38.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001966/0.2543, allocations: 166.2 kB / 431.3 MB, free: 38.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.2543, allocations: 6.875 kB / 431.3 MB, free: 38.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006225/0.255, allocations: 0.5219 MB / 431.9 MB, free: 37.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.184e-06/0.255, allocations: 4 kB / 431.9 MB, free: 37.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.000801/0.2558, allocations: 0.644 MB / 432.5 MB, free: 37.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.621e-05/0.2558, allocations: 57.19 kB / 432.6 MB, free: 37.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.035e-05/0.2559, allocations: 131.4 kB / 432.7 MB, free: 37.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.651e-05/0.256, allocations: 45.64 kB / 432.7 MB, free: 37.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.594e-05/0.256, allocations: 91.52 kB / 432.8 MB, free: 37.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.948e-05/0.2561, allocations: 75.98 kB / 432.9 MB, free: 37.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.728e-05/0.2561, allocations: 54.67 kB / 433 MB, free: 37.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.441e-05/0.2562, allocations: 339.5 kB / 433.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.2563, allocations: 88.52 kB / 433.4 MB, free: 36.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001474/0.2565, allocations: 150.9 kB / 433.5 MB, free: 36.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002814/0.2568, allocations: 239.7 kB / 433.8 MB, free: 36.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.2568, allocations: 2.688 kB / 433.8 MB, free: 36.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002993/0.2571, allocations: 246.6 kB / 434 MB, free: 36.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.2571, allocations: 5.688 kB / 434 MB, free: 36.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.2571, allocations: 0 / 434 MB, free: 36.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.2571, allocations: 7 kB / 434 MB, free: 36.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.59e-05/0.2572, allocations: 24.12 kB / 434 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.2572, allocations: 2.969 kB / 434 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.2574, allocations: 38.33 kB / 434.1 MB, free: 36.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.697e-05/0.2575, allocations: 8.688 kB / 434.1 MB, free: 36.55 MB / 350.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.000149/0.2576, allocations: 158.6 kB / 434.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.826e-05/0.2577, allocations: 28.53 kB / 434.3 MB, free: 36.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.771e-05/0.2577, allocations: 35.67 kB / 434.3 MB, free: 36.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.2577, allocations: 2.906 kB / 434.3 MB, free: 36.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.2578, allocations: 0 / 434.3 MB, free: 36.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.2578, allocations: 0 / 434.3 MB, free: 36.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001698/0.2579, allocations: 276 kB / 434.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2579, allocations: 0 / 434.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.282e-05/0.258, allocations: 10.08 kB / 434.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.258, allocations: 2.906 kB / 434.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.31e-05/0.258, allocations: 26.62 kB / 434.6 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.258, allocations: 7.328 kB / 434.6 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.258, allocations: 0 / 434.6 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005556/0.2586, allocations: 0.5643 MB / 435.2 MB, free: 35.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.2587, allocations: 115.8 kB / 435.3 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.981e-05/0.2588, allocations: 28.86 kB / 435.3 MB, free: 35.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001992/0.259, allocations: 43.05 kB / 435.4 MB, free: 35.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.2592, allocations: 89.39 kB / 435.5 MB, free: 35.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.011e-05/0.2592, allocations: 37.58 kB / 435.5 MB, free: 35.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.849e-05/0.2592, allocations: 104.3 kB / 435.6 MB, free: 35.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2592, allocations: 0 / 435.6 MB, free: 35.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002724/0.2595, allocations: 81.41 kB / 435.7 MB, free: 35.64 MB / 350.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.0001375/0.2597, allocations: 137.9 kB / 435.8 MB, free: 35.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000456/0.2601, allocations: 311.8 kB / 436.1 MB, free: 35.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2601, allocations: 3.25 kB / 436.1 MB, free: 35.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004258/0.2606, allocations: 0.7272 MB / 436.8 MB, free: 34.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.2609, allocations: 59.36 kB / 436.9 MB, free: 34.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008194/0.2617, allocations: 440.7 kB / 437.3 MB, free: 34.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000113/0.2618, allocations: 0.7152 MB / 438.1 MB, free: 34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.619e-05/0.2619, allocations: 33.09 kB / 438.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.262, allocations: 43.7 kB / 438.1 MB, free: 33.97 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.262, allocations: 0 / 438.1 MB, free: 33.97 MB / 350.1 MB Notification: Performance of Templates: time 0.005363/0.2674, allocations: 3.651 MB / 441.8 MB, free: 33.73 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches