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.001879/0.001879, allocations: 103.8 kB / 16.41 MB, free: 6.492 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.001963/0.001963, allocations: 192.1 kB / 17.35 MB, free: 5.762 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.538/1.538, 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.06292/0.06292, allocations: 14.17 MB / 284.7 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.001755/0.001755, allocations: 69.89 kB / 398.6 MB, free: 43.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1306, allocations: 50.14 MB / 448.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.003528/0.1342, allocations: 1.433 MB / 450.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.1354, allocations: 0.5309 MB / 450.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.898e-05/0.1356, allocations: 0 / 450.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.219e-05/0.1356, allocations: 3.938 kB / 450.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.1358, allocations: 15.86 kB / 450.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003096/0.1361, allocations: 79.81 kB / 450.8 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002647/0.1363, allocations: 183.6 kB / 451 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.249e-05/0.1364, allocations: 7.922 kB / 451 MB, free: 9.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002003/0.1367, allocations: 103.7 kB / 451.1 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.1368, allocations: 91.72 kB / 451.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.845e-05/0.1369, allocations: 16 kB / 451.2 MB, free: 9.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.409e-05/0.1369, allocations: 12 kB / 451.2 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.329e-05/0.137, allocations: 51.91 kB / 451.3 MB, free: 9.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001193/0.1371, allocations: 79.72 kB / 451.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002051/0.1373, allocations: 131.6 kB / 451.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.1374, allocations: 0 / 451.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.358e-05/0.1374, allocations: 3.984 kB / 451.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.1374, 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.001186/0.1386, allocations: 0.5536 MB / 452.1 MB, free: 8.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.1386, allocations: 8.031 kB / 452.1 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.1388, allocations: 28.77 kB / 452.1 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001992/0.139, allocations: 172.3 kB / 452.3 MB, free: 8.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.631e-05/0.139, allocations: 16.34 kB / 452.3 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.557e-05/0.1391, allocations: 28.3 kB / 452.3 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000622/0.1397, allocations: 377.4 kB / 452.7 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.1398, allocations: 4 kB / 452.7 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.104e-05/0.1398, allocations: 11.97 kB / 452.7 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.1398, allocations: 4 kB / 452.7 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001891/0.14, allocations: 67.83 kB / 452.8 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005396/0.1406, allocations: 372.6 kB / 453.1 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002923/0.1409, allocations: 174.5 kB / 453.3 MB, free: 7.492 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002523/0.1411, allocations: 169 kB / 453.5 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.118e-05/0.1412, allocations: 4 kB / 453.5 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008859/0.142, allocations: 0.518 MB / 454 MB, free: 6.789 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.893e-06/0.1421, allocations: 0 / 454 MB, free: 6.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001094/0.1432, allocations: 0.6549 MB / 454.6 MB, free: 6.129 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.879e-05/0.1432, allocations: 59.39 kB / 454.7 MB, free: 6.059 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.1434, allocations: 121.3 kB / 454.8 MB, free: 5.934 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.832e-05/0.1434, allocations: 49.69 kB / 454.9 MB, free: 5.879 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.998e-05/0.1435, allocations: 92.69 kB / 455 MB, free: 5.785 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.785e-05/0.1436, allocations: 75.19 kB / 455 MB, free: 5.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.645e-05/0.1437, allocations: 53.7 kB / 455.1 MB, free: 5.652 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002338/0.1439, allocations: 334.8 kB / 455.4 MB, free: 5.316 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.1441, allocations: 88.3 kB / 455.5 MB, free: 5.227 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002382/0.1443, allocations: 155.4 kB / 455.6 MB, free: 5.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003866/0.1447, allocations: 237.7 kB / 455.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1447, allocations: 0 / 455.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004219/0.1452, allocations: 237.2 kB / 456.1 MB, free: 4.562 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.1452, allocations: 11.94 kB / 456.1 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.1452, allocations: 3.938 kB / 456.1 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.1453, allocations: 4 kB / 456.1 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.1454, allocations: 16.06 kB / 456.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.1454, allocations: 11.98 kB / 456.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002245/0.1456, allocations: 31.97 kB / 456.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.1457, 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.0002264/0.1459, allocations: 153.4 kB / 456.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.231e-05/0.1459, allocations: 31.89 kB / 456.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.426e-05/0.146, allocations: 29.62 kB / 456.4 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.146, allocations: 11.97 kB / 456.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.1461, allocations: 0 / 456.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/0.1461, allocations: 0 / 456.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002725/0.1463, allocations: 285.4 kB / 456.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1463, allocations: 0 / 456.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.315e-05/0.1464, allocations: 11.94 kB / 456.7 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1464, allocations: 0 / 456.7 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.196e-05/0.1465, allocations: 23.95 kB / 456.7 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1465, allocations: 4 kB / 456.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1465, allocations: 0 / 456.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.1479, allocations: 1.513 MB / 458.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000168/0.1481, allocations: 124.8 kB / 458.4 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.651e-05/0.1482, allocations: 27.91 kB / 458.4 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002202/0.1484, allocations: 47.94 kB / 458.5 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/0.1486, allocations: 79.83 kB / 458.5 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.422e-05/0.1487, allocations: 43.97 kB / 458.6 MB, free: 1.957 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.29e-05/0.1488, allocations: 95.27 kB / 458.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.7e-07/0.1488, allocations: 0 / 458.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004008/0.1492, allocations: 79.97 kB / 458.7 MB, free: 1.785 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.0002075/0.1494, allocations: 133.4 kB / 458.9 MB, free: 1.645 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000522/0.1499, allocations: 291.8 kB / 459.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.78e-06/0.15, allocations: 4 kB / 459.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007772/0.1507, allocations: 0.7264 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.0003633/0.1511, allocations: 48.66 kB / 459.9 MB, free: 0.582 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/0.1524, allocations: 0.6045 MB / 460.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003757/0.1528, allocations: 0.7216 MB / 461.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001121/0.1529, allocations: 29.95 kB / 461.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.1531, allocations: 47.33 kB / 461.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1531, allocations: 0 / 461.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of Templates: time 0.007881/0.1609, allocations: 3.895 MB / 465.2 MB, free: 11.22 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