Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_dev_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_dev_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.00122/0.00122, allocations: 104.6 kB / 16.35 MB, free: 5.828 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.001221/0.001221, allocations: 193.2 kB / 17.29 MB, free: 5.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.0748/0.0748, allocations: 16.74 MB / 307.9 MB, free: 14.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 61.59 kB / 374.5 MB, free: 49.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1198, allocations: 53.57 MB / 428.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002875/0.1227, allocations: 1.437 MB / 429.5 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009949/0.1238, allocations: 495.3 kB / 430 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.78e-05/0.1238, allocations: 0 / 430 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.517e-05/0.1239, allocations: 11.92 kB / 430 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.662e-05/0.124, allocations: 15.86 kB / 430.1 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002345/0.1242, allocations: 71.83 kB / 430.1 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001907/0.1244, allocations: 187.6 kB / 430.3 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.659e-05/0.1245, allocations: 4 kB / 430.3 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001379/0.1246, allocations: 107.7 kB / 430.4 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.1248, allocations: 91.72 kB / 430.5 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.523e-05/0.1248, allocations: 12 kB / 430.5 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.767e-05/0.1249, allocations: 12 kB / 430.5 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.585e-05/0.125, allocations: 51.91 kB / 430.6 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.1251, allocations: 83.72 kB / 430.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000165/0.1252, allocations: 127.6 kB / 430.8 MB, free: 7.957 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1253, allocations: 0 / 430.8 MB, free: 7.957 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1253, allocations: 0 / 430.8 MB, free: 7.957 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1253, allocations: 4 kB / 430.8 MB, free: 7.953 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.001045/0.1263, allocations: 0.5535 MB / 431.3 MB, free: 7.352 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.1264, allocations: 8.031 kB / 431.4 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.1265, allocations: 24.83 kB / 431.4 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.1266, allocations: 182.7 kB / 431.6 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.1267, allocations: 12.36 kB / 431.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.785e-05/0.1268, allocations: 28.36 kB / 431.6 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006926/0.1275, allocations: 373.4 kB / 432 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.1275, allocations: 8 kB / 432 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.199e-05/0.1276, allocations: 15.91 kB / 432 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.1276, allocations: 0 / 432 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002515/0.1278, allocations: 71.88 kB / 432.1 MB, free: 6.602 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004206/0.1283, allocations: 368.6 kB / 432.4 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003264/0.1286, allocations: 174.8 kB / 432.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002932/0.1289, allocations: 168.7 kB / 432.7 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.1289, allocations: 4 kB / 432.8 MB, free: 5.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008352/0.1298, allocations: 0.5219 MB / 433.3 MB, free: 5.305 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.924e-06/0.1298, allocations: 3.938 kB / 433.3 MB, free: 5.301 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.001198/0.131, allocations: 0.6497 MB / 433.9 MB, free: 4.645 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.131, allocations: 55.41 kB / 434 MB, free: 4.578 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.606e-05/0.1311, allocations: 133.7 kB / 434.1 MB, free: 4.438 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.002e-05/0.1312, allocations: 41.7 kB / 434.2 MB, free: 4.391 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.616e-05/0.1312, allocations: 88.69 kB / 434.2 MB, free: 4.301 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.357e-05/0.1313, allocations: 71.28 kB / 434.3 MB, free: 4.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.1314, allocations: 53.7 kB / 434.4 MB, free: 4.172 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.733e-05/0.1315, allocations: 334.8 kB / 434.7 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/0.1317, allocations: 88.3 kB / 434.8 MB, free: 3.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002322/0.1319, allocations: 151.4 kB / 434.9 MB, free: 3.578 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004308/0.1324, allocations: 233.7 kB / 435.1 MB, free: 3.332 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1324, allocations: 0 / 435.1 MB, free: 3.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000488/0.1329, allocations: 249.1 kB / 435.4 MB, free: 3.082 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.1329, allocations: 6.031 kB / 435.4 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.1329, allocations: 4 kB / 435.4 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/0.133, allocations: 4 kB / 435.4 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.1331, allocations: 19.92 kB / 435.4 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.1331, allocations: 8.125 kB / 435.4 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002875/0.1334, allocations: 31.97 kB / 435.5 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.333e-05/0.1335, allocations: 12 kB / 435.5 MB, free: 3 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.1337, allocations: 165.4 kB / 435.6 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.4e-05/0.1338, allocations: 31.8 kB / 435.7 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001044/0.1339, allocations: 33.62 kB / 435.7 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.1339, allocations: 0 / 435.7 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.1339, allocations: 7.938 kB / 435.7 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.1339, allocations: 8.016 kB / 435.7 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002594/0.1342, allocations: 273.4 kB / 436 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.1342, allocations: 0 / 436 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.973e-05/0.1343, allocations: 11.94 kB / 436 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.1343, allocations: 0 / 436 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.798e-05/0.1343, allocations: 23.95 kB / 436 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.1344, allocations: 7.984 kB / 436 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1344, allocations: 4 kB / 436 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009221/0.1353, allocations: 0.568 MB / 436.6 MB, free: 1.797 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001794/0.1355, allocations: 112.9 kB / 436.7 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.1356, allocations: 27.95 kB / 436.7 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002943/0.1359, allocations: 35.95 kB / 436.8 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002585/0.1362, allocations: 87.83 kB / 436.9 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.094e-05/0.1363, allocations: 47.89 kB / 436.9 MB, free: 1.473 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.857e-05/0.1363, allocations: 99.27 kB / 437 MB, free: 1.375 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1363, allocations: 0 / 437 MB, free: 1.375 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004997/0.1368, allocations: 75.98 kB / 437.1 MB, free: 1.301 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.0002065/0.1371, allocations: 129.5 kB / 437.2 MB, free: 1.168 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006683/0.1377, allocations: 291.8 kB / 437.5 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1378, allocations: 0 / 437.5 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004703/0.1382, allocations: 0.7344 MB / 438.2 MB, free: 152 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.1385, allocations: 55.8 kB / 438.3 MB, free: 96 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009574/0.1395, allocations: 439.1 kB / 438.7 MB, free: 15.63 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.1398, allocations: 0.7138 MB / 439.4 MB, free: 14.89 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.1399, allocations: 29.94 kB / 439.4 MB, free: 14.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001196/0.14, allocations: 43.41 kB / 439.5 MB, free: 14.82 MB / 318.1 MB Notification: Performance of SimCode: time 7.51e-07/0.14, allocations: 0 / 439.5 MB, free: 14.82 MB / 318.1 MB Notification: Performance of Templates: time 0.007744/0.1478, allocations: 3.668 MB / 443.2 MB, free: 11.17 MB / 318.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches