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.000954/0.000954, allocations: 72.95 kB / 20.73 MB, free: 3.762 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.0009576/0.0009576, allocations: 173 kB / 24.15 MB, free: 348 kB / 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.9809/0.9809, allocations: 158.6 MB / 186 MB, free: 2.766 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.04269/0.04269, allocations: 10.65 MB / 249 MB, free: 4.355 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 the simulation runtime does not accept it 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.774e-06/1.774e-06, allocations: 0 / 271 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.959e-05/3.136e-05, allocations: 2.312 kB / 271 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002558/0.002589, allocations: 1.449 MB / 272.4 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.003607, allocations: 0.5308 MB / 272.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.161e-05/0.003658, allocations: 4 kB / 272.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.022e-05/0.003689, allocations: 3.938 kB / 273 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001155/0.003804, allocations: 15.86 kB / 273 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002471/0.004051, allocations: 79.81 kB / 273 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001792/0.00423, allocations: 191.6 kB / 273.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.864e-05/0.004279, allocations: 0 / 273.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.004471, allocations: 127.8 kB / 273.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.004614, allocations: 79.77 kB / 273.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.255e-05/0.004667, allocations: 16 kB / 273.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.56e-05/0.004692, allocations: 12 kB / 273.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.004836, allocations: 59.83 kB / 273.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.312e-05/0.004909, allocations: 67.84 kB / 273.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001848/0.005094, allocations: 155.5 kB / 273.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.005097, allocations: 0 / 273.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.005099, allocations: 7.938 kB / 273.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.005104, allocations: 4 kB / 273.7 MB, free: 11.57 MB / 266.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.0006565/0.00576, allocations: 452.2 kB / 274.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.005808, allocations: 8.031 kB / 274.2 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.005923, allocations: 48.88 kB / 274.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.886e-05/0.006022, allocations: 109.8 kB / 274.4 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.006041, allocations: 16.34 kB / 274.4 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.182e-05/0.006083, allocations: 24.36 kB / 274.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003474/0.00643, allocations: 429 kB / 274.8 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.006438, allocations: 4.188 kB / 274.8 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.02e-05/0.006468, allocations: 8.359 kB / 274.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.006476, allocations: 7.938 kB / 274.8 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.642e-05/0.006552, allocations: 55.97 kB / 274.9 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002598/0.006812, allocations: 188.2 kB / 275.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001143/0.006927, allocations: 74.58 kB / 275.1 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.03e-05/0.007007, allocations: 68.81 kB / 275.2 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.008e-05/0.007017, allocations: 4 kB / 275.2 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006388/0.007656, allocations: 0.5331 MB / 275.7 MB, free: 9.453 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.715e-06/0.007659, allocations: 4 kB / 275.8 MB, free: 9.449 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0003927/0.008051, allocations: 382.1 kB / 276.1 MB, free: 9.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.0081, allocations: 55.41 kB / 276.2 MB, free: 9.004 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.756e-05/0.008198, allocations: 130.7 kB / 276.3 MB, free: 8.863 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.794e-05/0.008236, allocations: 45.69 kB / 276.4 MB, free: 8.812 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.664e-05/0.008282, allocations: 88.78 kB / 276.4 MB, free: 8.723 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.176e-05/0.008334, allocations: 75.48 kB / 276.5 MB, free: 8.648 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.358e-05/0.008408, allocations: 57.67 kB / 276.6 MB, free: 8.586 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.00854, allocations: 338.7 kB / 276.9 MB, free: 8.246 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.762e-05/0.008597, allocations: 32.31 kB / 276.9 MB, free: 8.211 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.00871, allocations: 180.4 kB / 277.1 MB, free: 7.992 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/0.008852, allocations: 149.3 kB / 277.3 MB, free: 7.828 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.008854, allocations: 0 / 277.3 MB, free: 7.828 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001816/0.009036, allocations: 161.6 kB / 277.4 MB, free: 7.664 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.009055, allocations: 7.984 kB / 277.4 MB, free: 7.656 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.009066, allocations: 11.92 kB / 277.4 MB, free: 7.645 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.009078, allocations: 4.125 kB / 277.4 MB, free: 7.641 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.2e-05/0.00915, allocations: 19.94 kB / 277.5 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.009155, allocations: 0 / 277.5 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.009268, allocations: 39.92 kB / 277.5 MB, free: 7.582 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.009281, allocations: 7.984 kB / 277.5 MB, free: 7.574 MB / 266.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.0002068/0.009488, allocations: 154.2 kB / 277.7 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.043e-05/0.009548, allocations: 59.92 kB / 277.7 MB, free: 7.355 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.345e-05/0.009601, allocations: 37.56 kB / 277.7 MB, free: 7.316 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.009605, allocations: 4 kB / 277.8 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.00961, allocations: 0 / 277.8 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.009615, allocations: 0 / 277.8 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000142/0.009757, allocations: 117.8 kB / 277.9 MB, free: 7.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.009759, allocations: 0 / 277.9 MB, free: 7.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.736e-05/0.009777, allocations: 11.92 kB / 277.9 MB, free: 7.168 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.00978, allocations: 4 kB / 277.9 MB, free: 7.164 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.009803, allocations: 23.95 kB / 277.9 MB, free: 7.141 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.009805, allocations: 4 kB / 277.9 MB, free: 7.137 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.009809, allocations: 3.938 kB / 277.9 MB, free: 7.133 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.01085, allocations: 1.201 MB / 279.1 MB, free: 5.867 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.01096, allocations: 27.88 kB / 279.1 MB, free: 5.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.612e-05/0.01103, allocations: 27.95 kB / 279.2 MB, free: 5.812 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.01113, allocations: 31.95 kB / 279.2 MB, free: 5.781 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.01127, allocations: 87.73 kB / 279.3 MB, free: 5.695 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.669e-05/0.0113, allocations: 27.97 kB / 279.3 MB, free: 5.668 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.717e-05/0.01134, allocations: 32.83 kB / 279.3 MB, free: 5.633 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01134, allocations: 0 / 279.3 MB, free: 5.633 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002726/0.01161, allocations: 79.97 kB / 279.4 MB, free: 5.555 MB / 266.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.0001634/0.01177, allocations: 110.3 kB / 279.5 MB, free: 5.438 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002445/0.01202, allocations: 196.7 kB / 279.7 MB, free: 5.242 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.01202, allocations: 4 kB / 279.7 MB, free: 5.238 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.01215, allocations: 156.6 kB / 279.9 MB, free: 5.082 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001979/0.01235, allocations: 55.86 kB / 279.9 MB, free: 5.027 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007146/0.01307, allocations: 0.5704 MB / 280.5 MB, free: 4.422 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.073e-05/0.01312, allocations: 81.3 kB / 280.6 MB, free: 4.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.968e-05/0.0132, allocations: 33.94 kB / 280.6 MB, free: 4.289 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001723/0.01337, allocations: 111.2 kB / 280.7 MB, free: 4.18 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.01337, allocations: 0 / 280.7 MB, free: 4.18 MB / 266.7 MB Notification: Performance of Templates: time 0.006874/0.02024, allocations: 4.098 MB / 284.8 MB, free: 64 kB / 266.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=240 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.863339720759541]