Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_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_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.001063/0.001063, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001116/0.001116, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.327/1.327, allocations: 205.1 MB / 222.1 MB, free: 4.699 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06366/0.06366, allocations: 14.15 MB / 283.6 MB, free: 7.25 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.002211/0.002212, allocations: 71.84 kB / 345.9 MB, free: 18.35 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1345, allocations: 50.13 MB / 396.1 MB, free: 184 kB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.00367/0.1382, allocations: 1.495 MB / 397.6 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.1395, allocations: 0.5427 MB / 398.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.715e-05/0.1396, allocations: 0 / 398.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.489e-05/0.1397, allocations: 3.938 kB / 398.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001422/0.1399, allocations: 15.91 kB / 398.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.1402, allocations: 55.88 kB / 398.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002104/0.1404, allocations: 191.6 kB / 398.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.44e-05/0.1405, allocations: 3.984 kB / 398.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/0.1406, allocations: 99.78 kB / 398.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.1408, allocations: 91.73 kB / 398.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.569e-05/0.1408, allocations: 12 kB / 398.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.23e-05/0.1408, allocations: 12 kB / 398.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.378e-05/0.1409, allocations: 55.84 kB / 398.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.141, allocations: 79.8 kB / 398.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001906/0.1412, allocations: 135.9 kB / 398.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1413, allocations: 3.938 kB / 398.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1413, allocations: 3.938 kB / 398.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.1413, allocations: 0 / 398.9 MB, free: 13.37 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.001232/0.1425, allocations: 0.5651 MB / 399.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.337e-05/0.1426, allocations: 12.03 kB / 399.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001587/0.1428, allocations: 20.83 kB / 399.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000244/0.143, allocations: 172.3 kB / 399.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.02e-05/0.1431, allocations: 16.34 kB / 399.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.33e-05/0.1432, allocations: 24.36 kB / 399.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000691/0.1438, allocations: 381.3 kB / 400 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1439, allocations: 4 kB / 400 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.523e-05/0.1439, allocations: 11.98 kB / 400.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.1439, allocations: 0 / 400.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002029/0.1442, allocations: 67.94 kB / 400.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005293/0.1447, allocations: 368.6 kB / 400.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002929/0.145, allocations: 174.5 kB / 400.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002625/0.1453, allocations: 164.8 kB / 400.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.603e-05/0.1453, allocations: 0 / 400.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008895/0.1462, allocations: 0.5269 MB / 401.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.635e-06/0.1462, allocations: 0 / 401.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.00114/0.1473, allocations: 0.6458 MB / 402 MB, free: 10.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.965e-05/0.1475, allocations: 63.41 kB / 402 MB, free: 10 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000173/0.1476, allocations: 129.4 kB / 402.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.338e-05/0.1477, allocations: 45.69 kB / 402.2 MB, free: 9.816 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.938e-05/0.1478, allocations: 92.7 kB / 402.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.399e-05/0.1479, allocations: 75.2 kB / 402.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.148, allocations: 57.7 kB / 402.4 MB, free: 9.586 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.1482, allocations: 330.7 kB / 402.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.1483, allocations: 96.23 kB / 402.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002111/0.1486, allocations: 151.4 kB / 403 MB, free: 8.988 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003982/0.149, allocations: 241.7 kB / 403.2 MB, free: 8.734 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.149, allocations: 4 kB / 403.2 MB, free: 8.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003784/0.1494, allocations: 245 kB / 403.5 MB, free: 8.484 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.1494, allocations: 4 kB / 403.5 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.1494, allocations: 4 kB / 403.5 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.1495, allocations: 3.984 kB / 403.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.1496, allocations: 15.94 kB / 403.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.1496, allocations: 128 / 403.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002409/0.1499, allocations: 43.95 kB / 403.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/0.1499, allocations: 8 kB / 403.6 MB, free: 8.406 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.0003164/0.1502, allocations: 160 kB / 403.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.385e-05/0.1503, allocations: 27.81 kB / 403.7 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.442e-05/0.1504, allocations: 33.61 kB / 403.8 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.1504, allocations: 4 kB / 403.8 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1504, allocations: 0 / 403.8 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.1504, allocations: 0 / 403.8 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002729/0.1507, allocations: 281.4 kB / 404.1 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1507, allocations: 0 / 404.1 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.258e-05/0.1507, allocations: 11.92 kB / 404.1 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.1508, allocations: 4 kB / 404.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.554e-05/0.1508, allocations: 27.95 kB / 404.1 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-06/0.1508, allocations: 0 / 404.1 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1508, allocations: 4 kB / 404.1 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00075/0.1516, allocations: 0.563 MB / 404.7 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001533/0.1517, allocations: 116.9 kB / 404.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.784e-05/0.1518, allocations: 19.97 kB / 404.8 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002044/0.152, allocations: 47.94 kB / 404.8 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002268/0.1523, allocations: 79.84 kB / 404.9 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.116e-05/0.1523, allocations: 43.95 kB / 405 MB, free: 6.906 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.065e-05/0.1524, allocations: 99.27 kB / 405.1 MB, free: 6.809 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1525, allocations: 0 / 405.1 MB, free: 6.809 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003224/0.1528, allocations: 79.97 kB / 405.1 MB, free: 6.73 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.0002134/0.153, allocations: 129.4 kB / 405.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006677/0.1537, allocations: 312.9 kB / 405.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1537, allocations: 3.938 kB / 405.6 MB, free: 6.289 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009426/0.1546, allocations: 0.7305 MB / 406.3 MB, free: 5.559 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/0.155, allocations: 59.73 kB / 406.4 MB, free: 5.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.1561, allocations: 459.6 kB / 406.8 MB, free: 5.023 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004039/0.1565, allocations: 0.7138 MB / 407.5 MB, free: 4.285 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001196/0.1566, allocations: 33.97 kB / 407.6 MB, free: 4.254 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.1568, allocations: 39.41 kB / 407.6 MB, free: 4.215 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1568, allocations: 0 / 407.6 MB, free: 4.215 MB / 302.1 MB Notification: Performance of Templates: time 0.007852/0.1646, allocations: 3.586 MB / 411.2 MB, free: 0.6367 MB / 302.1 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches