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.0008871/0.0008871, allocations: 93.03 kB / 16.03 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 177.9 kB / 16.92 MB, free: 6.68 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.534/1.534, allocations: 205.4 MB / 223.1 MB, free: 5.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06356/0.06356, allocations: 14.17 MB / 285.6 MB, free: 7.273 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.0005841/0.0005843, allocations: 19.98 kB / 348.8 MB, free: 18.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1026, allocations: 51.1 MB / 399.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001824/0.1045, allocations: 1.164 MB / 401.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.1056, allocations: 0.5311 MB / 401.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.994e-05/0.1057, allocations: 7.938 kB / 401.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.032e-05/0.1058, allocations: 0 / 401.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000109/0.1059, allocations: 3.938 kB / 401.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002605/0.1062, allocations: 71.8 kB / 401.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002346/0.1064, allocations: 179.6 kB / 401.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.755e-05/0.1065, allocations: 4 kB / 401.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001833/0.1067, allocations: 99.78 kB / 401.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001366/0.1068, allocations: 91.72 kB / 402 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.944e-05/0.1069, allocations: 12 kB / 402.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.261e-05/0.1069, allocations: 15.94 kB / 402.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.197e-05/0.107, allocations: 63.78 kB / 402.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001328/0.1071, allocations: 109.5 kB / 402.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000199/0.1073, allocations: 131.9 kB / 402.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1074, allocations: 0 / 402.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1074, allocations: 0 / 402.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1074, allocations: 0 / 402.4 MB, free: 12.55 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.001001/0.1084, allocations: 495 kB / 402.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.1084, allocations: 12.03 kB / 402.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.1086, allocations: 24.83 kB / 402.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.1087, allocations: 180.2 kB / 403.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.383e-05/0.1088, allocations: 8.359 kB / 403.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.622e-05/0.1088, allocations: 28.36 kB / 403.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005963/0.1094, allocations: 381.3 kB / 403.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.1095, allocations: 4 kB / 403.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.972e-05/0.1095, allocations: 11.97 kB / 403.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.271e-06/0.1095, allocations: 0 / 403.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001766/0.1097, allocations: 67.94 kB / 403.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004151/0.1101, allocations: 372.6 kB / 403.9 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002861/0.1104, allocations: 170.5 kB / 404.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002424/0.1107, allocations: 164.8 kB / 404.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.1107, allocations: 8 kB / 404.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007506/0.1115, allocations: 0.5153 MB / 404.8 MB, free: 9.992 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.803e-06/0.1115, allocations: 0 / 404.8 MB, free: 9.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009683/0.1125, allocations: 0.6496 MB / 405.4 MB, free: 9.336 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/0.1125, allocations: 71.33 kB / 405.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.1126, allocations: 129.8 kB / 405.6 MB, free: 9.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.104e-05/0.1127, allocations: 45.69 kB / 405.7 MB, free: 9.066 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.613e-05/0.1128, allocations: 92.69 kB / 405.7 MB, free: 8.973 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.288e-05/0.1128, allocations: 71.14 kB / 405.8 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.257e-05/0.1129, allocations: 37.7 kB / 405.9 MB, free: 8.859 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.113, allocations: 334.8 kB / 406.2 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/0.1132, allocations: 88.3 kB / 406.3 MB, free: 8.434 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.1134, allocations: 151.4 kB / 406.4 MB, free: 8.262 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003612/0.1138, allocations: 241.7 kB / 406.6 MB, free: 8.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1138, allocations: 0 / 406.6 MB, free: 8.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003822/0.1142, allocations: 241.2 kB / 406.9 MB, free: 7.766 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.1142, allocations: 7.938 kB / 406.9 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.443e-06/0.1142, allocations: 4 kB / 406.9 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.1142, allocations: 0 / 406.9 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.1143, allocations: 19.92 kB / 406.9 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.1144, allocations: 4.125 kB / 406.9 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002411/0.1146, allocations: 43.97 kB / 407 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.156e-05/0.1146, allocations: 8 kB / 407 MB, free: 7.68 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.0002117/0.1148, allocations: 165.5 kB / 407.1 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.429e-05/0.1149, allocations: 27.8 kB / 407.2 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.592e-05/0.115, allocations: 33.62 kB / 407.2 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.115, allocations: 4 kB / 407.2 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.115, allocations: 0 / 407.2 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.115, allocations: 7.922 kB / 407.2 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000249/0.1153, allocations: 273.4 kB / 407.5 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1153, allocations: 0 / 407.5 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.078e-05/0.1153, allocations: 8 kB / 407.5 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.1153, allocations: 0 / 407.5 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.239e-05/0.1154, allocations: 27.95 kB / 407.5 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.1154, allocations: 8 kB / 407.5 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1154, allocations: 0 / 407.5 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001274/0.1167, allocations: 1.272 MB / 408.8 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.1169, allocations: 116.9 kB / 408.9 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.281e-05/0.1169, allocations: 27.97 kB / 408.9 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/0.1172, allocations: 51.98 kB / 409 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/0.1174, allocations: 95.69 kB / 409.1 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-05/0.1175, allocations: 39.95 kB / 409.1 MB, free: 5.402 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.162e-05/0.1175, allocations: 99.27 kB / 409.2 MB, free: 5.305 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1175, allocations: 3.938 kB / 409.2 MB, free: 5.301 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004246/0.118, allocations: 71.98 kB / 409.3 MB, free: 5.23 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.000163/0.1181, allocations: 137.5 kB / 409.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005208/0.1187, allocations: 300.9 kB / 409.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.1187, allocations: 0 / 409.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006595/0.1194, allocations: 0.7341 MB / 410.4 MB, free: 4.062 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/0.1197, allocations: 43.95 kB / 410.5 MB, free: 4.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.1208, allocations: 0.6377 MB / 411.1 MB, free: 3.344 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002608/0.1211, allocations: 0.7219 MB / 411.8 MB, free: 2.598 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001214/0.1213, allocations: 29.94 kB / 411.9 MB, free: 2.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.1214, allocations: 35.41 kB / 411.9 MB, free: 2.535 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1214, allocations: 0 / 411.9 MB, free: 2.535 MB / 302.1 MB Notification: Performance of Templates: time 0.007421/0.1288, allocations: 3.273 MB / 415.2 MB, free: 15.27 MB / 318.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