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.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_symb_jac_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_symb_jac_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.001985/0.001986, allocations: 111.2 kB / 16.42 MB, free: 6.504 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.002102/0.002102, allocations: 185.5 kB / 17.35 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.459/1.459, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.07229/0.07229, allocations: 14.17 MB / 284.8 MB, free: 13.86 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.001429/0.001429, allocations: 65.62 kB / 398.7 MB, free: 43.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08999/0.09143, allocations: 50.13 MB / 448.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002814/0.09431, allocations: 1.442 MB / 450.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.09543, allocations: 0.5309 MB / 450.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.68e-05/0.09549, allocations: 0 / 450.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.167e-05/0.09554, allocations: 3.938 kB / 450.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.46e-05/0.09564, allocations: 11.86 kB / 450.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.09586, allocations: 79.83 kB / 450.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.09607, allocations: 183.6 kB / 451 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.769e-05/0.09615, allocations: 4 kB / 451 MB, free: 9.918 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.09629, allocations: 99.77 kB / 451.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.09642, allocations: 91.67 kB / 451.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.501e-05/0.09647, allocations: 12 kB / 451.2 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.652e-05/0.09652, allocations: 16 kB / 451.2 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.927e-05/0.09658, allocations: 55.84 kB / 451.3 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.09671, allocations: 79.72 kB / 451.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001756/0.09689, allocations: 135.6 kB / 451.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.09691, allocations: 0 / 451.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.09691, allocations: 4 kB / 451.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.09693, allocations: 0 / 451.5 MB, free: 9.434 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.09795, allocations: 0.5497 MB / 452.1 MB, free: 8.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.09799, allocations: 12.03 kB / 452.1 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.795e-05/0.0981, allocations: 20.88 kB / 452.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001547/0.09826, allocations: 180.2 kB / 452.3 MB, free: 8.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.09829, allocations: 20.34 kB / 452.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.497e-05/0.09837, allocations: 24.36 kB / 452.3 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005921/0.09896, allocations: 377.4 kB / 452.7 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.09898, allocations: 0 / 452.7 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.157e-05/0.09904, allocations: 11.98 kB / 452.7 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.09905, allocations: 3.984 kB / 452.7 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001828/0.09924, allocations: 71.83 kB / 452.8 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004265/0.09968, allocations: 372.6 kB / 453.1 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002779/0.09996, allocations: 174.5 kB / 453.3 MB, free: 7.492 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002339/0.1002, allocations: 164.8 kB / 453.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.1002, allocations: 0 / 453.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007942/0.101, allocations: 0.5297 MB / 454 MB, free: 6.789 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.593e-06/0.101, allocations: 0 / 454 MB, free: 6.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009934/0.102, allocations: 0.6511 MB / 454.6 MB, free: 6.133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/0.1021, allocations: 59.39 kB / 454.7 MB, free: 6.062 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.1022, allocations: 125.8 kB / 454.8 MB, free: 5.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.897e-05/0.1023, allocations: 49.62 kB / 454.9 MB, free: 5.875 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.118e-05/0.1023, allocations: 92.7 kB / 455 MB, free: 5.781 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.365e-05/0.1024, allocations: 71.56 kB / 455 MB, free: 5.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.894e-05/0.1025, allocations: 61.7 kB / 455.1 MB, free: 5.645 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.1026, allocations: 326.8 kB / 455.4 MB, free: 5.316 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.1028, allocations: 92.28 kB / 455.5 MB, free: 5.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.103, allocations: 151.4 kB / 455.7 MB, free: 5.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003537/0.1033, allocations: 237.6 kB / 455.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1034, allocations: 4 kB / 455.9 MB, free: 4.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003614/0.1037, allocations: 237.3 kB / 456.1 MB, free: 4.559 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.1037, allocations: 4 kB / 456.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.1038, allocations: 8.125 kB / 456.1 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.1038, allocations: 0 / 456.1 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.1039, allocations: 15.94 kB / 456.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.1039, allocations: 3.938 kB / 456.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002189/0.1041, allocations: 47.84 kB / 456.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.089e-05/0.1042, allocations: 8 kB / 456.2 MB, free: 4.473 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.0002046/0.1044, allocations: 166.5 kB / 456.4 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.528e-05/0.1044, allocations: 31.94 kB / 456.4 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.877e-05/0.1045, allocations: 33.61 kB / 456.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1045, allocations: 7.938 kB / 456.4 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.1045, allocations: 4 kB / 456.4 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1046, allocations: 0 / 456.4 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002489/0.1048, allocations: 273.4 kB / 456.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.1048, allocations: 3.984 kB / 456.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.791e-05/0.1048, allocations: 4 kB / 456.7 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.778e-06/0.1049, allocations: 8 kB / 456.7 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.042e-05/0.1049, allocations: 31.89 kB / 456.8 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1049, allocations: 0 / 456.8 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1049, allocations: 0 / 456.8 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.1063, allocations: 1.509 MB / 458.3 MB, free: 2.285 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/0.1065, allocations: 124.9 kB / 458.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.377e-05/0.1066, allocations: 23.91 kB / 458.4 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.1068, allocations: 39.94 kB / 458.5 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002007/0.107, allocations: 83.84 kB / 458.5 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.298e-05/0.1071, allocations: 43.95 kB / 458.6 MB, free: 1.957 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.119e-05/0.1071, allocations: 99.14 kB / 458.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1071, allocations: 0 / 458.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004095/0.1076, allocations: 87.91 kB / 458.8 MB, free: 1.777 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.0001748/0.1077, allocations: 133.4 kB / 458.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005031/0.1082, allocations: 287.8 kB / 459.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1083, allocations: 0 / 459.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006323/0.1089, allocations: 0.7263 MB / 459.9 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.1093, allocations: 51.94 kB / 460 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.1104, allocations: 0.6117 MB / 460.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.1106, allocations: 0.7216 MB / 461.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.1107, allocations: 25.95 kB / 461.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.1109, allocations: 43.39 kB / 461.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1109, allocations: 8 kB / 461.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of Templates: time 0.006936/0.1178, allocations: 3.675 MB / 465 MB, free: 11.44 MB / 350.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (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) 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) Reference file matches