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.006953/0.006953, allocations: 104.7 kB / 15.88 MB, free: 6.285 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.001249/0.001249, allocations: 195 kB / 16.8 MB, free: 6.223 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.474/1.474, allocations: 205.1 MB / 222.7 MB, free: 4.715 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0658/0.0658, allocations: 14.16 MB / 284.1 MB, free: 7.277 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.001468/0.001469, allocations: 75.91 kB / 346.4 MB, free: 18.46 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1053, allocations: 50.13 MB / 396.5 MB, free: 308 kB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.003021/0.1084, allocations: 1.503 MB / 398 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.1094, allocations: 0.5349 MB / 398.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.969e-05/0.1095, allocations: 0 / 398.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.924e-05/0.1095, allocations: 7.922 kB / 398.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001125/0.1097, allocations: 7.938 kB / 398.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001883/0.1099, allocations: 55.88 kB / 398.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001914/0.1101, allocations: 195.6 kB / 398.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.818e-05/0.1101, allocations: 4 kB / 398.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.1103, allocations: 95.78 kB / 398.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.1104, allocations: 87.73 kB / 399 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.618e-05/0.1105, allocations: 12 kB / 399 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.663e-05/0.1105, allocations: 16 kB / 399 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.692e-05/0.1106, allocations: 63.83 kB / 399.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.1107, allocations: 83.72 kB / 399.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001981/0.1109, allocations: 131.9 kB / 399.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.1109, allocations: 0 / 399.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.111, allocations: 4 kB / 399.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.111, allocations: 0 / 399.3 MB, free: 13.5 MB / 302.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.001152/0.1121, allocations: 0.5535 MB / 399.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.522e-05/0.1122, allocations: 8.031 kB / 399.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.1123, allocations: 24.83 kB / 399.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.1125, allocations: 176.2 kB / 400.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.361e-05/0.1125, allocations: 16.36 kB / 400.1 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.714e-05/0.1126, allocations: 24.36 kB / 400.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006043/0.1132, allocations: 377.4 kB / 400.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.1132, allocations: 0 / 400.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.888e-05/0.1133, allocations: 23.97 kB / 400.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1133, allocations: 0 / 400.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002005/0.1135, allocations: 71.88 kB / 400.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004668/0.114, allocations: 368.6 kB / 400.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002792/0.1142, allocations: 178.5 kB / 401.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002529/0.1145, allocations: 165 kB / 401.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.1145, allocations: 0 / 401.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009019/0.1154, allocations: 0.5228 MB / 401.8 MB, free: 10.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.924e-06/0.1155, allocations: 0 / 401.8 MB, free: 10.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.001049/0.1165, allocations: 0.6496 MB / 402.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.1166, allocations: 63.39 kB / 402.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.1167, allocations: 129.5 kB / 402.6 MB, free: 9.988 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.796e-05/0.1168, allocations: 45.69 kB / 402.7 MB, free: 9.938 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.961e-05/0.1168, allocations: 96.67 kB / 402.8 MB, free: 9.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.724e-05/0.1169, allocations: 75.17 kB / 402.9 MB, free: 9.766 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.117, allocations: 57.7 kB / 402.9 MB, free: 9.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.1171, allocations: 334.8 kB / 403.2 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000165/0.1173, allocations: 84.3 kB / 403.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002048/0.1175, allocations: 155.4 kB / 403.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003922/0.1179, allocations: 241.7 kB / 403.7 MB, free: 8.855 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.1179, allocations: 0 / 403.7 MB, free: 8.855 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004114/0.1184, allocations: 241.2 kB / 403.9 MB, free: 8.613 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.1184, allocations: 8 kB / 403.9 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.1184, allocations: 4.062 kB / 404 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.1184, allocations: 8 kB / 404 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.1186, allocations: 15.92 kB / 404 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.1186, allocations: 7.984 kB / 404 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002349/0.1188, allocations: 35.97 kB / 404 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.1189, allocations: 8 kB / 404 MB, free: 8.527 MB / 302.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.0002492/0.1191, allocations: 161.5 kB / 404.2 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.005e-05/0.1192, allocations: 27.8 kB / 404.2 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.313e-05/0.1193, allocations: 37.56 kB / 404.2 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.1193, allocations: 0 / 404.2 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.1193, allocations: 0 / 404.2 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.1193, allocations: 7.984 kB / 404.3 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000268/0.1196, allocations: 273.4 kB / 404.5 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1196, allocations: 0 / 404.5 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.159e-05/0.1196, allocations: 7.938 kB / 404.5 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1196, allocations: 4 kB / 404.5 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-05/0.1197, allocations: 27.95 kB / 404.6 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.1197, allocations: 0 / 404.6 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.1197, allocations: 4 kB / 404.6 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.121, allocations: 1.268 MB / 405.8 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001542/0.1212, allocations: 128.8 kB / 406 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.158e-05/0.1213, allocations: 31.97 kB / 406 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002328/0.1215, allocations: 39.94 kB / 406 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002465/0.1218, allocations: 87.77 kB / 406.1 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.496e-05/0.1218, allocations: 39.95 kB / 406.2 MB, free: 6.262 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.987e-05/0.1219, allocations: 99.27 kB / 406.3 MB, free: 6.164 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1219, allocations: 0 / 406.3 MB, free: 6.164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004213/0.1223, allocations: 71.98 kB / 406.3 MB, free: 6.094 MB / 302.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.0001813/0.1225, allocations: 145.4 kB / 406.5 MB, free: 5.945 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004954/0.123, allocations: 300.9 kB / 406.8 MB, free: 5.652 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.123, allocations: 0 / 406.8 MB, free: 5.652 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006385/0.1237, allocations: 0.7264 MB / 407.5 MB, free: 4.926 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003443/0.124, allocations: 43.94 kB / 407.5 MB, free: 4.883 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.1253, allocations: 0.6325 MB / 408.2 MB, free: 4.211 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.1255, allocations: 0.7219 MB / 408.9 MB, free: 3.465 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001585/0.1257, allocations: 33.98 kB / 408.9 MB, free: 3.434 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.1259, allocations: 39.39 kB / 409 MB, free: 3.395 MB / 302.1 MB Notification: Performance of SimCode: time 1.212e-06/0.1259, allocations: 0 / 409 MB, free: 3.395 MB / 302.1 MB Notification: Performance of Templates: time 0.006842/0.1327, allocations: 3.31 MB / 412.3 MB, free: 96 kB / 302.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","../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches