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.004536/0.004536, allocations: 100.6 kB / 15.73 MB, free: 6.035 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.001209/0.001209, allocations: 192.4 kB / 16.67 MB, free: 5.973 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2053/0.2053, allocations: 16.79 MB / 307.3 MB, free: 14.76 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 68.11 kB / 428.1 MB, free: 36.31 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1163, allocations: 53.57 MB / 481.6 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.003213/0.1195, allocations: 1.435 MB / 483.1 MB, free: 8.344 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.1208, allocations: 0.4933 MB / 483.6 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.174e-05/0.1209, allocations: 1.375 kB / 483.6 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.45e-05/0.121, allocations: 7.875 kB / 483.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001178/0.1211, allocations: 17.33 kB / 483.6 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002173/0.1214, allocations: 81.41 kB / 483.7 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002287/0.1216, allocations: 190.5 kB / 483.9 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.586e-05/0.1217, allocations: 3.375 kB / 483.9 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.1218, allocations: 96.06 kB / 484 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.122, allocations: 91.47 kB / 484 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.411e-05/0.122, allocations: 17.47 kB / 484.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.068e-05/0.1221, allocations: 11.72 kB / 484.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.897e-05/0.1221, allocations: 52.45 kB / 484.1 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001478/0.1223, allocations: 77.62 kB / 484.2 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002329/0.1225, allocations: 129.8 kB / 484.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.1225, allocations: 4 kB / 484.3 MB, free: 7.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.1226, allocations: 1.312 kB / 484.3 MB, free: 7.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.637e-06/0.1226, allocations: 0 / 484.3 MB, free: 7.469 MB / 350.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.001073/0.1237, allocations: 0.5547 MB / 484.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.1237, allocations: 9.5 kB / 484.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.1238, allocations: 23.89 kB / 484.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.124, allocations: 177.3 kB / 485.1 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.806e-05/0.124, allocations: 27.09 kB / 485.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.091e-05/0.1241, allocations: 26.23 kB / 485.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005595/0.1246, allocations: 376.5 kB / 485.5 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.1247, allocations: 1.375 kB / 485.5 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.852e-05/0.1247, allocations: 12.09 kB / 485.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.1247, allocations: 1.375 kB / 485.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.1249, allocations: 63.7 kB / 485.6 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003911/0.1253, allocations: 375.2 kB / 486 MB, free: 6.047 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002357/0.1256, allocations: 175.4 kB / 486.1 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002103/0.1258, allocations: 165.7 kB / 486.3 MB, free: 5.844 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.1258, allocations: 1.375 kB / 486.3 MB, free: 5.844 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006834/0.1265, allocations: 0.5297 MB / 486.8 MB, free: 5.504 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.884e-06/0.1265, allocations: 0 / 486.8 MB, free: 5.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009071/0.1274, allocations: 0.6481 MB / 487.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.1275, allocations: 56.84 kB / 487.5 MB, free: 5.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.892e-05/0.1276, allocations: 127.1 kB / 487.6 MB, free: 4.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.563e-05/0.1276, allocations: 46.12 kB / 487.7 MB, free: 4.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.743e-05/0.1276, allocations: 90.27 kB / 487.8 MB, free: 4.848 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.952e-05/0.1277, allocations: 82.11 kB / 487.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.57e-05/0.1278, allocations: 54.64 kB / 487.9 MB, free: 4.738 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.466e-05/0.1278, allocations: 330.6 kB / 488.2 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.128, allocations: 94.64 kB / 488.3 MB, free: 4.332 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.1281, allocations: 147.5 kB / 488.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002646/0.1284, allocations: 229.8 kB / 488.7 MB, free: 3.922 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.1284, allocations: 0 / 488.7 MB, free: 3.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002858/0.1287, allocations: 249 kB / 488.9 MB, free: 3.672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.1287, allocations: 9.688 kB / 488.9 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.1287, allocations: 4 kB / 489 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.1288, allocations: 0 / 489 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.46e-05/0.1288, allocations: 19.94 kB / 489 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.1289, allocations: 4 kB / 489 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000183/0.1291, allocations: 39.8 kB / 489 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.975e-05/0.1291, allocations: 15.98 kB / 489 MB, free: 3.582 MB / 350.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.0001585/0.1292, allocations: 161.5 kB / 489.2 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.603e-05/0.1293, allocations: 31.8 kB / 489.2 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.969e-05/0.1294, allocations: 33.66 kB / 489.3 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1294, allocations: 4 kB / 489.3 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.1294, allocations: 0 / 489.3 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1294, allocations: 0 / 489.3 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001731/0.1296, allocations: 281.4 kB / 489.5 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1296, allocations: 0 / 489.5 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.288e-05/0.1296, allocations: 8 kB / 489.5 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1296, allocations: 4 kB / 489.5 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.722e-05/0.1297, allocations: 27.95 kB / 489.6 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1297, allocations: 0 / 489.6 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1297, allocations: 3.938 kB / 489.6 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005511/0.1302, allocations: 0.568 MB / 490.1 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.1303, allocations: 120.8 kB / 490.3 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.586e-05/0.1304, allocations: 23.97 kB / 490.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/0.1306, allocations: 43.94 kB / 490.3 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.1308, allocations: 83.84 kB / 490.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-05/0.1308, allocations: 43.95 kB / 490.4 MB, free: 2.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.509e-05/0.1309, allocations: 95.27 kB / 490.5 MB, free: 1.969 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1309, allocations: 0 / 490.5 MB, free: 1.969 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002667/0.1311, allocations: 75.97 kB / 490.6 MB, free: 1.895 MB / 350.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.000131/0.1313, allocations: 139.2 kB / 490.8 MB, free: 1.754 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003991/0.1317, allocations: 295.8 kB / 491 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1317, allocations: 0 / 491 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004042/0.1321, allocations: 0.7225 MB / 491.8 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.1324, allocations: 55.88 kB / 491.8 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008107/0.1332, allocations: 435.1 kB / 492.2 MB, free: 244 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.1335, allocations: 0.7217 MB / 493 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.607e-05/0.1336, allocations: 29.95 kB / 493 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.1337, allocations: 39.39 kB / 493 MB, free: 15.42 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1337, allocations: 7.875 kB / 493 MB, free: 15.41 MB / 366.1 MB Notification: Performance of Templates: time 0.006713/0.1404, allocations: 3.684 MB / 496.7 MB, free: 11.74 MB / 366.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches