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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000835/0.000835, allocations: 84.44 kB / 20.7 MB, free: 3.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008904/0.0008904, allocations: 173.9 kB / 23.97 MB, free: 0.5898 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8095/0.8095, allocations: 158.6 MB / 185.7 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.03737/0.03737, allocations: 10.65 MB / 248.6 MB, free: 4.734 MB / 234.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_symb_jac_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_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 371.8 MB, free: 4.246 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.271e-05/2.394e-05, allocations: 5.797 kB / 371.8 MB, free: 4.242 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001771/0.001795, allocations: 1.413 MB / 373.2 MB, free: 2.816 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008237/0.002618, allocations: 0.519 MB / 373.7 MB, free: 2.289 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.647e-05/0.002655, allocations: 4 kB / 373.7 MB, free: 2.285 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.849e-05/0.002673, allocations: 3.938 kB / 373.7 MB, free: 2.281 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.213e-05/0.002746, allocations: 11.86 kB / 373.7 MB, free: 2.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001782/0.002924, allocations: 79.81 kB / 373.8 MB, free: 2.191 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000138/0.003062, allocations: 187.6 kB / 374 MB, free: 2.008 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.531e-05/0.003107, allocations: 0 / 374 MB, free: 2.008 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001324/0.003239, allocations: 131.8 kB / 374.1 MB, free: 1.879 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.963e-05/0.003329, allocations: 79.78 kB / 374.2 MB, free: 1.801 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.194e-05/0.003371, allocations: 12 kB / 374.2 MB, free: 1.789 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.984e-05/0.003391, allocations: 16 kB / 374.2 MB, free: 1.773 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.096e-05/0.003432, allocations: 55.83 kB / 374.3 MB, free: 1.719 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.284e-05/0.003515, allocations: 67.84 kB / 374.3 MB, free: 1.652 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001632/0.003678, allocations: 167.5 kB / 374.5 MB, free: 1.488 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.003681, allocations: 4 kB / 374.5 MB, free: 1.484 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.003682, allocations: 0 / 374.5 MB, free: 1.484 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.003686, allocations: 0 / 374.5 MB, free: 1.484 MB / 298.7 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.0006596/0.004346, allocations: 485.7 kB / 375 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.00438, allocations: 8.031 kB / 375 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.88e-05/0.004458, allocations: 24.88 kB / 375 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.004567, allocations: 121.7 kB / 375.1 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.004586, allocations: 16.34 kB / 375.2 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.947e-05/0.004625, allocations: 24.3 kB / 375.2 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005591/0.005184, allocations: 425 kB / 375.6 MB, free: 340 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.005195, allocations: 192 / 375.6 MB, free: 340 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.779e-05/0.005243, allocations: 16.34 kB / 375.6 MB, free: 324 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.005249, allocations: 11.92 kB / 375.6 MB, free: 312 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.00539, allocations: 59.95 kB / 375.7 MB, free: 252 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003028/0.005693, allocations: 280.5 kB / 376 MB, free: 15.94 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003258/0.006019, allocations: 82.55 kB / 376 MB, free: 15.85 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.006151, allocations: 72.8 kB / 376.1 MB, free: 15.78 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.006162, allocations: 0 / 376.1 MB, free: 15.78 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005344/0.006696, allocations: 0.5762 MB / 376.7 MB, free: 15.18 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 1.573e-06/0.006698, allocations: 4 kB / 376.7 MB, free: 15.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=30): time 0.0006862/0.007384, allocations: 0.6355 MB / 377.3 MB, free: 14.53 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.616e-05/0.00742, allocations: 59.41 kB / 377.4 MB, free: 14.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.717e-05/0.007497, allocations: 137.1 kB / 377.5 MB, free: 14.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.007525, allocations: 41.7 kB / 377.6 MB, free: 14.27 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.254e-05/0.007568, allocations: 100.7 kB / 377.7 MB, free: 14.17 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.087e-05/0.007619, allocations: 71.56 kB / 377.7 MB, free: 14.1 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.792e-05/0.007687, allocations: 57.7 kB / 377.8 MB, free: 14.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.506e-05/0.007762, allocations: 326.8 kB / 378.1 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.007864, allocations: 92.23 kB / 378.2 MB, free: 13.62 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.008022, allocations: 232.3 kB / 378.4 MB, free: 13.35 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002439/0.008266, allocations: 233.6 kB / 378.6 MB, free: 13.1 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.008268, allocations: 0 / 378.6 MB, free: 13.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000246/0.008514, allocations: 261.2 kB / 378.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.008529, allocations: 4 kB / 378.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.008534, allocations: 3.938 kB / 378.9 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.008547, allocations: 4 kB / 378.9 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.507e-05/0.008612, allocations: 15.92 kB / 378.9 MB, free: 12.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.00862, allocations: 4 kB / 378.9 MB, free: 12.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/0.008749, allocations: 47.98 kB / 379 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.008763, allocations: 8 kB / 379 MB, free: 12.75 MB / 314.7 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.0001534/0.008916, allocations: 163.7 kB / 379.1 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.507e-05/0.008951, allocations: 31.83 kB / 379.2 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.094e-05/0.008992, allocations: 33.62 kB / 379.2 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.008995, allocations: 4 kB / 379.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.009001, allocations: 4 kB / 379.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.009006, allocations: 3.984 kB / 379.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001263/0.009132, allocations: 189.2 kB / 379.4 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.009133, allocations: 0 / 379.4 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.489e-05/0.009148, allocations: 11.94 kB / 379.4 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.00915, allocations: 0 / 379.4 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.009174, allocations: 27.89 kB / 379.4 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.009176, allocations: 0 / 379.4 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.009177, allocations: 0 / 379.4 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.01031, allocations: 1.501 MB / 380.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.01042, allocations: 43.83 kB / 381 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.315e-05/0.01047, allocations: 23.97 kB / 381 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.01059, allocations: 39.94 kB / 381 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.01074, allocations: 87.8 kB / 381.1 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.979e-05/0.01077, allocations: 39.97 kB / 381.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.09e-05/0.01081, allocations: 99.2 kB / 381.3 MB, free: 10.37 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01081, allocations: 0 / 381.3 MB, free: 10.37 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002703/0.01108, allocations: 79.97 kB / 381.3 MB, free: 10.29 MB / 314.7 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.0001114/0.01119, allocations: 133.5 kB / 381.5 MB, free: 10.15 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003364/0.01153, allocations: 271.8 kB / 381.7 MB, free: 9.883 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.01153, allocations: 3.938 kB / 381.7 MB, free: 9.879 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001881/0.01172, allocations: 171.8 kB / 381.9 MB, free: 9.711 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002037/0.01192, allocations: 43.88 kB / 382 MB, free: 9.668 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007419/0.01266, allocations: 0.632 MB / 382.6 MB, free: 8.988 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.99e-05/0.01272, allocations: 111.1 kB / 382.7 MB, free: 8.855 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.707e-05/0.01281, allocations: 44.47 kB / 382.7 MB, free: 8.812 MB / 314.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01281, allocations: 0 / 382.7 MB, free: 8.812 MB / 314.7 MB Notification: Performance of Templates: time 0.003307/0.01612, allocations: 2.631 MB / 385.4 MB, free: 6.191 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.2173107005655766]