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.0008574/0.0008573, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.00095/0.00095, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.486/1.486, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06087/0.06087, allocations: 14.15 MB / 284.5 MB, free: 7.145 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.0005279/0.0005279, allocations: 20 kB / 347.5 MB, free: 18.54 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1234, allocations: 51.12 MB / 398.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002666/0.1261, allocations: 1.137 MB / 399.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.1277, allocations: 0.5196 MB / 400.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.349e-05/0.1278, allocations: 3.938 kB / 400.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.388e-05/0.1279, allocations: 3.938 kB / 400.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001252/0.128, allocations: 15.91 kB / 400.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002464/0.1282, allocations: 63.88 kB / 400.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002313/0.1285, allocations: 159.6 kB / 400.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.804e-05/0.1286, allocations: 3.984 kB / 400.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001678/0.1288, allocations: 99.73 kB / 400.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001676/0.1289, allocations: 87.78 kB / 400.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.076e-05/0.129, allocations: 16 kB / 400.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.066e-05/0.1291, allocations: 12 kB / 400.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.128e-05/0.1291, allocations: 55.86 kB / 400.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.955e-05/0.1293, allocations: 57.62 kB / 400.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001453/0.1294, allocations: 80.11 kB / 400.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1294, allocations: 0 / 400.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1294, allocations: 0 / 400.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.1294, allocations: 0 / 400.9 MB, free: 13.06 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.001356/0.1308, allocations: 494.9 kB / 401.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.1309, allocations: 12.02 kB / 401.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.131, allocations: 23.89 kB / 401.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003177/0.1313, allocations: 174.9 kB / 401.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.858e-05/0.1314, allocations: 19.97 kB / 401.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.062e-05/0.1315, allocations: 23.98 kB / 401.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008514/0.1323, allocations: 381 kB / 402 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.1324, allocations: 0 / 402 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.209e-05/0.1324, allocations: 11.97 kB / 402 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.1325, allocations: 4 kB / 402 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002465/0.1327, allocations: 63.94 kB / 402.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005948/0.1333, allocations: 368.6 kB / 402.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003424/0.1337, allocations: 182.5 kB / 402.6 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003528/0.134, allocations: 168.8 kB / 402.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.1341, allocations: 0 / 402.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001123/0.1352, allocations: 0.523 MB / 403.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.304e-06/0.1352, allocations: 0 / 403.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.001596/0.1368, allocations: 0.6458 MB / 404 MB, free: 9.832 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/0.1369, allocations: 63.39 kB / 404 MB, free: 9.758 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001378/0.137, allocations: 129.7 kB / 404.2 MB, free: 9.621 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.323e-05/0.1371, allocations: 45.69 kB / 404.2 MB, free: 9.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.273e-05/0.1372, allocations: 92.69 kB / 404.3 MB, free: 9.477 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.015e-05/0.1373, allocations: 71.22 kB / 404.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.006e-05/0.1373, allocations: 12 kB / 404.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002245/0.1375, allocations: 330.8 kB / 404.7 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.1378, allocations: 88.28 kB / 404.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002932/0.1381, allocations: 151.4 kB / 404.9 MB, free: 8.801 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001424/0.1382, allocations: 44.42 kB / 405 MB, free: 8.758 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.1382, allocations: 0 / 405 MB, free: 8.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006174/0.1389, allocations: 245.3 kB / 405.2 MB, free: 8.512 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.1389, allocations: 4 kB / 405.2 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1389, allocations: 4 kB / 405.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.1389, allocations: 0 / 405.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.1391, allocations: 24.05 kB / 405.2 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.1391, allocations: 8 kB / 405.2 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002809/0.1394, allocations: 39.88 kB / 405.3 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-05/0.1395, allocations: 19.92 kB / 405.3 MB, free: 8.414 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 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$PRE.state,state,$PRE.locked,$PRE.tap,tap,lookingToIncreaseTap,lookingToDecreaseTap,$PRE.tTapMoved,tTapMoved,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.tValueAboveMaxWhileRunning,tValueAboveMaxWhileRunning,$PRE.running,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002629/0.1397, allocations: 157.5 kB / 405.5 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.847e-05/0.1398, allocations: 31.8 kB / 405.5 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.1399, allocations: 29.62 kB / 405.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.535e-06/0.1399, allocations: 4 kB / 405.5 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.14, allocations: 0 / 405.5 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.128e-06/0.14, allocations: 3.984 kB / 405.5 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003973/0.1404, allocations: 277.4 kB / 405.8 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1404, allocations: 0 / 405.8 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.353e-05/0.1404, allocations: 4 kB / 405.8 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.1405, allocations: 11.94 kB / 405.8 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-05/0.1405, allocations: 31.94 kB / 405.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/0.1405, allocations: 0 / 405.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.1406, allocations: 3.938 kB / 405.9 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.1416, allocations: 0.5553 MB / 406.4 MB, free: 7.238 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.1419, allocations: 112.9 kB / 406.5 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001156/0.142, allocations: 27.95 kB / 406.5 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002956/0.1423, allocations: 47.95 kB / 406.6 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002926/0.1426, allocations: 111.7 kB / 406.7 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.739e-05/0.1427, allocations: 43.95 kB / 406.7 MB, free: 6.883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.568e-05/0.1428, allocations: 98.89 kB / 406.8 MB, free: 6.789 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1428, allocations: 0 / 406.8 MB, free: 6.789 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004352/0.1432, allocations: 75.98 kB / 406.9 MB, free: 6.715 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003255/0.1436, allocations: 134.1 kB / 407 MB, free: 6.578 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006672/0.1442, allocations: 301 kB / 407.3 MB, free: 6.285 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1443, allocations: 0 / 407.3 MB, free: 6.285 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.1453, allocations: 0.7186 MB / 408.1 MB, free: 5.566 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000493/0.1458, allocations: 54.39 kB / 408.1 MB, free: 5.516 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.1472, allocations: 459 kB / 408.6 MB, free: 5.043 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000517/0.1477, allocations: 0.7141 MB / 409.3 MB, free: 4.305 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001599/0.1479, allocations: 29.98 kB / 409.3 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001608/0.1481, allocations: 43.33 kB / 409.3 MB, free: 4.234 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.1481, allocations: 0 / 409.3 MB, free: 4.234 MB / 302.1 MB Notification: Performance of Templates: time 0.008544/0.1566, allocations: 3.109 MB / 412.5 MB, free: 1.133 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