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.006323/0.006323, allocations: 101 kB / 15.73 MB, free: 6.059 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.001316/0.001315, allocations: 197 kB / 16.68 MB, free: 5.969 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.455/1.455, allocations: 222.9 MB / 240.4 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.08214/0.08214, allocations: 16.68 MB / 307.2 MB, free: 14.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 59.91 kB / 428 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1218, allocations: 53.54 MB / 481.5 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002809/0.1247, allocations: 1.447 MB / 483 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009528/0.1256, allocations: 494.8 kB / 483.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.444e-05/0.1257, allocations: 0 / 483.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.178e-05/0.1257, allocations: 7.922 kB / 483.4 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.793e-05/0.1259, allocations: 11.88 kB / 483.5 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000215/0.1261, allocations: 79.81 kB / 483.5 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002431/0.1263, allocations: 191.6 kB / 483.7 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.991e-05/0.1264, allocations: 4 kB / 483.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.1265, allocations: 95.78 kB / 483.8 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001397/0.1267, allocations: 95.66 kB / 483.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.476e-05/0.1267, allocations: 16 kB / 483.9 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.637e-05/0.1268, allocations: 12 kB / 483.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.807e-05/0.1268, allocations: 55.84 kB / 484 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.127, allocations: 75.78 kB / 484.1 MB, free: 1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001912/0.1272, allocations: 135.6 kB / 484.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1272, allocations: 0 / 484.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.747e-06/0.1272, allocations: 0 / 484.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1272, allocations: 3.938 kB / 484.2 MB, free: 0.8633 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.001025/0.1282, allocations: 0.5497 MB / 484.8 MB, free: 272 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.1283, allocations: 12.02 kB / 484.8 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.296e-05/0.1284, allocations: 20.89 kB / 484.8 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.1285, allocations: 188.1 kB / 485 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.441e-05/0.1286, allocations: 20.42 kB / 485 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.923e-05/0.1287, allocations: 20.36 kB / 485 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006122/0.1293, allocations: 385.4 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.1293, allocations: 0 / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.808e-05/0.1293, allocations: 11.98 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.1294, allocations: 4 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001894/0.1295, allocations: 63.88 kB / 485.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004547/0.13, allocations: 372.6 kB / 485.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002966/0.1303, allocations: 170.5 kB / 486 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002532/0.1306, allocations: 164.8 kB / 486.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.003e-05/0.1306, allocations: 288 / 486.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008322/0.1314, allocations: 0.5219 MB / 486.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 3.948e-06/0.1315, allocations: 7.984 kB / 486.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.001026/0.1325, allocations: 0.6535 MB / 487.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.802e-05/0.1326, allocations: 59.41 kB / 487.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.1327, allocations: 125.2 kB / 487.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.599e-05/0.1327, allocations: 45.69 kB / 487.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.606e-05/0.1328, allocations: 88.7 kB / 487.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.174e-05/0.1329, allocations: 75.58 kB / 487.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.133, allocations: 57.69 kB / 487.8 MB, free: 13.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.1331, allocations: 330.8 kB / 488.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.1333, allocations: 92.16 kB / 488.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000209/0.1335, allocations: 147.5 kB / 488.3 MB, free: 12.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003758/0.1339, allocations: 229.8 kB / 488.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1339, allocations: 3.938 kB / 488.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004062/0.1343, allocations: 245.2 kB / 488.8 MB, free: 12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.1344, allocations: 8 kB / 488.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.1344, allocations: 0 / 488.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.1344, allocations: 4.125 kB / 488.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.1345, allocations: 23.92 kB / 488.8 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.1345, allocations: 7.938 kB / 488.9 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002206/0.1347, allocations: 31.97 kB / 488.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/0.1348, allocations: 8 kB / 488.9 MB, free: 11.91 MB / 366.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.0002162/0.135, allocations: 173.4 kB / 489.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.113e-05/0.1351, allocations: 31.89 kB / 489.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.943e-05/0.1352, allocations: 29.62 kB / 489.1 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1352, allocations: 4 kB / 489.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1352, allocations: 0 / 489.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.1352, allocations: 3.984 kB / 489.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002796/0.1355, allocations: 273.4 kB / 489.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.1355, allocations: 4 kB / 489.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.054e-05/0.1355, allocations: 7.938 kB / 489.4 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1355, allocations: 0 / 489.4 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.792e-05/0.1356, allocations: 35.94 kB / 489.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.1356, allocations: 0 / 489.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1356, allocations: 0 / 489.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000781/0.1364, allocations: 0.5681 MB / 490 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.1366, allocations: 116.9 kB / 490.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.802e-05/0.1366, allocations: 27.95 kB / 490.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/0.1369, allocations: 35.95 kB / 490.2 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002088/0.1371, allocations: 91.83 kB / 490.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.696e-05/0.1371, allocations: 47.89 kB / 490.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.98e-05/0.1372, allocations: 95.27 kB / 490.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1372, allocations: 0 / 490.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002907/0.1375, allocations: 79.98 kB / 490.5 MB, free: 10.21 MB / 366.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.0001761/0.1377, allocations: 129.4 kB / 490.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005239/0.1382, allocations: 295.7 kB / 490.9 MB, free: 9.785 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1383, allocations: 4.25 kB / 490.9 MB, free: 9.781 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007103/0.139, allocations: 0.7303 MB / 491.6 MB, free: 9.051 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/0.1393, allocations: 47.89 kB / 491.7 MB, free: 9.004 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009939/0.1403, allocations: 435 kB / 492.1 MB, free: 8.555 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.1407, allocations: 0.7215 MB / 492.8 MB, free: 7.805 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.1408, allocations: 33.97 kB / 492.9 MB, free: 7.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.141, allocations: 39.41 kB / 492.9 MB, free: 7.73 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.141, allocations: 0 / 492.9 MB, free: 7.73 MB / 366.1 MB Notification: Performance of Templates: time 0.007843/0.1488, allocations: 3.688 MB / 496.6 MB, free: 4.059 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=50 -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