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.001382/0.001383, allocations: 106.9 kB / 16.42 MB, free: 6.461 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.001149/0.001149, allocations: 189.5 kB / 17.35 MB, free: 5.734 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.5/1.5, 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.06557/0.06557, allocations: 14.16 MB / 284.7 MB, free: 13.87 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.001842/0.001842, allocations: 78.58 kB / 398.7 MB, free: 43.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09254/0.09439, 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.002767/0.0972, allocations: 1.438 MB / 450.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001019/0.09825, allocations: 0.527 MB / 450.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.63e-05/0.09831, allocations: 0 / 450.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.484e-05/0.09836, allocations: 3.938 kB / 450.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.215e-05/0.09845, allocations: 15.86 kB / 450.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.09867, allocations: 75.83 kB / 450.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002097/0.09888, allocations: 187.6 kB / 451 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.544e-05/0.09895, allocations: 4 kB / 451 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001337/0.09909, allocations: 103.7 kB / 451.1 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.09922, allocations: 87.73 kB / 451.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.548e-05/0.09926, allocations: 16 kB / 451.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.812e-05/0.0993, allocations: 12 kB / 451.2 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.492e-05/0.09937, allocations: 55.84 kB / 451.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.09948, allocations: 75.78 kB / 451.4 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001873/0.09967, allocations: 135.6 kB / 451.5 MB, free: 9.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.09968, allocations: 0 / 451.5 MB, free: 9.449 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.09969, allocations: 0 / 451.5 MB, free: 9.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.0997, allocations: 4 kB / 451.5 MB, free: 9.445 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.001019/0.1007, allocations: 0.5536 MB / 452.1 MB, free: 8.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.1008, allocations: 8.031 kB / 452.1 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.813e-05/0.1009, allocations: 24.88 kB / 452.1 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000157/0.1011, allocations: 180.2 kB / 452.3 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.848e-05/0.1011, allocations: 20.34 kB / 452.3 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.093e-05/0.1012, allocations: 24.3 kB / 452.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005799/0.1018, allocations: 385.4 kB / 452.7 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.1018, allocations: 0 / 452.7 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.085e-05/0.1018, allocations: 11.98 kB / 452.7 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.1019, allocations: 7.938 kB / 452.7 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001854/0.102, allocations: 63.88 kB / 452.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004454/0.1025, allocations: 372.6 kB / 453.1 MB, free: 7.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002654/0.1028, allocations: 174.5 kB / 453.3 MB, free: 7.496 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002381/0.103, allocations: 165.1 kB / 453.5 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.169e-05/0.103, allocations: 3.938 kB / 453.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000812/0.1039, allocations: 0.5259 MB / 454 MB, free: 6.789 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.693e-06/0.1039, allocations: 0 / 454 MB, free: 6.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009613/0.1048, allocations: 0.6472 MB / 454.6 MB, free: 6.137 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/0.1049, allocations: 59.41 kB / 454.7 MB, free: 6.066 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.9e-05/0.105, allocations: 129.3 kB / 454.8 MB, free: 5.934 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.728e-05/0.1051, allocations: 45.69 kB / 454.9 MB, free: 5.883 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.482e-05/0.1051, allocations: 88.7 kB / 455 MB, free: 5.793 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.65e-05/0.1052, allocations: 79.56 kB / 455 MB, free: 5.715 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.677e-05/0.1053, allocations: 53.7 kB / 455.1 MB, free: 5.656 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.1054, allocations: 330.8 kB / 455.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.1056, allocations: 88.3 kB / 455.5 MB, free: 5.234 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.1058, allocations: 159.3 kB / 455.7 MB, free: 5.055 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003606/0.1062, allocations: 237.7 kB / 455.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1062, allocations: 0 / 455.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003504/0.1065, allocations: 229.4 kB / 456.1 MB, free: 4.574 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.1065, allocations: 8 kB / 456.1 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.1066, allocations: 7.922 kB / 456.1 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.1066, allocations: 8.062 kB / 456.1 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.949e-05/0.1067, allocations: 19.94 kB / 456.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-06/0.1067, allocations: 4 kB / 456.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002244/0.1069, allocations: 43.84 kB / 456.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.409e-05/0.107, allocations: 12 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.000223/0.1072, allocations: 158.5 kB / 456.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.537e-05/0.1073, allocations: 31.91 kB / 456.4 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.778e-05/0.1073, allocations: 33.55 kB / 456.4 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.718e-06/0.1074, allocations: 4 kB / 456.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1074, allocations: 0 / 456.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.1074, allocations: 0 / 456.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002599/0.1076, allocations: 277.4 kB / 456.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.1077, allocations: 0 / 456.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.097e-05/0.1077, allocations: 11.92 kB / 456.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1077, allocations: 0 / 456.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.22e-05/0.1077, allocations: 31.95 kB / 456.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1078, allocations: 0 / 456.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.1078, allocations: 4 kB / 456.8 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/0.1091, allocations: 1.505 MB / 458.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.1093, allocations: 128.9 kB / 458.4 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.862e-05/0.1094, allocations: 23.91 kB / 458.4 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002303/0.1096, allocations: 43.94 kB / 458.5 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000223/0.1099, allocations: 79.84 kB / 458.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.82e-05/0.1099, allocations: 43.95 kB / 458.6 MB, free: 1.969 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.218e-05/0.11, allocations: 99.27 kB / 458.7 MB, free: 1.871 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1101, allocations: 0 / 458.7 MB, free: 1.871 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004189/0.1105, allocations: 75.97 kB / 458.7 MB, free: 1.797 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.0002025/0.1107, allocations: 137.4 kB / 458.9 MB, free: 1.652 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005299/0.1112, allocations: 291.8 kB / 459.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1112, allocations: 0 / 459.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006579/0.1119, allocations: 0.7264 MB / 459.9 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003314/0.1122, allocations: 47.88 kB / 459.9 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.1134, allocations: 0.6196 MB / 460.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.1138, allocations: 0.7216 MB / 461.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001265/0.1139, allocations: 29.98 kB / 461.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.1141, allocations: 43.39 kB / 461.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of SimCode: time 3.516e-06/0.1141, allocations: 0 / 461.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of Templates: time 0.008027/0.1221, allocations: 3.682 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=50 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches