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.001545/0.001545, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002102/0.002102, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.399/1.399, allocations: 205.1 MB / 222.4 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06314/0.06314, allocations: 14.17 MB / 283.9 MB, free: 7.086 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.00147/0.00147, allocations: 74.55 kB / 346.5 MB, free: 17.98 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1121, allocations: 50.12 MB / 396.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002928/0.1151, allocations: 1.43 MB / 398 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009886/0.1161, allocations: 0.527 MB / 398.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.236e-05/0.1161, allocations: 0 / 398.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.818e-05/0.1162, allocations: 3.938 kB / 398.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.234e-05/0.1162, allocations: 19.84 kB / 398.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000197/0.1165, allocations: 79.77 kB / 398.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001844/0.1166, allocations: 179.6 kB / 398.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.26e-05/0.1167, allocations: 4 kB / 398.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.1168, allocations: 103.8 kB / 398.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/0.117, allocations: 95.67 kB / 399 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.995e-05/0.117, allocations: 12 kB / 399 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.34e-05/0.117, allocations: 16 kB / 399.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.911e-05/0.1171, allocations: 55.84 kB / 399.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.1172, allocations: 71.8 kB / 399.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.1174, allocations: 127.9 kB / 399.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.1174, allocations: 4 kB / 399.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1174, allocations: 0 / 399.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1174, allocations: 0 / 399.3 MB, free: 13.09 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.001038/0.1185, allocations: 0.569 MB / 399.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.1185, allocations: 8.031 kB / 399.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.588e-05/0.1186, allocations: 24.83 kB / 399.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.1188, allocations: 176.3 kB / 400.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.1188, allocations: 12.36 kB / 400.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.947e-05/0.1189, allocations: 32.34 kB / 400.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005862/0.1195, allocations: 381.3 kB / 400.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.1195, allocations: 4 kB / 400.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.022e-05/0.1195, allocations: 7.984 kB / 400.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.1196, allocations: 0 / 400.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.1198, allocations: 67.94 kB / 400.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004351/0.1202, allocations: 368.6 kB / 400.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002677/0.1205, allocations: 174.5 kB / 401.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002324/0.1207, allocations: 156.8 kB / 401.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.079e-05/0.1207, allocations: 4 kB / 401.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008224/0.1216, allocations: 0.5259 MB / 401.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.713e-06/0.1216, allocations: 4 kB / 401.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009876/0.1226, allocations: 0.6472 MB / 402.4 MB, free: 9.781 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.1226, allocations: 59.41 kB / 402.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.1227, allocations: 133.5 kB / 402.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.674e-05/0.1228, allocations: 45.69 kB / 402.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.371e-05/0.1228, allocations: 92.7 kB / 402.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.648e-05/0.1229, allocations: 75.2 kB / 402.8 MB, free: 9.355 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.123, allocations: 53.7 kB / 402.9 MB, free: 9.297 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1232, allocations: 330.8 kB / 403.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.1233, allocations: 88.3 kB / 403.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.1235, allocations: 159.3 kB / 403.5 MB, free: 8.699 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003373/0.1239, allocations: 233.7 kB / 403.7 MB, free: 8.453 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1239, allocations: 0 / 403.7 MB, free: 8.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003613/0.1243, allocations: 249.1 kB / 403.9 MB, free: 8.203 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.1243, allocations: 7.938 kB / 403.9 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.1243, allocations: 0 / 403.9 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.1243, allocations: 4 kB / 403.9 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.741e-05/0.1244, allocations: 15.92 kB / 404 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.1244, allocations: 4.125 kB / 404 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.1247, allocations: 43.95 kB / 404 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/0.1247, allocations: 12 kB / 404 MB, free: 8.117 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.0001868/0.1249, allocations: 156.2 kB / 404.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.294e-05/0.1249, allocations: 31.8 kB / 404.2 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.598e-05/0.125, allocations: 37.61 kB / 404.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.125, allocations: 4 kB / 404.2 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.125, allocations: 0 / 404.2 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1251, allocations: 0 / 404.2 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002605/0.1253, allocations: 273.4 kB / 404.5 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1253, allocations: 0 / 404.5 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.193e-05/0.1254, allocations: 15.92 kB / 404.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.1254, allocations: 0 / 404.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.599e-05/0.1254, allocations: 23.95 kB / 404.5 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1254, allocations: 4 kB / 404.5 MB, free: 7.527 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1254, allocations: 4 kB / 404.6 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007025/0.1261, allocations: 0.5594 MB / 405.1 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.1263, allocations: 116.9 kB / 405.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.1264, allocations: 27.95 kB / 405.3 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.1266, allocations: 43.94 kB / 405.3 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/0.1268, allocations: 83.78 kB / 405.4 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.524e-05/0.1269, allocations: 51.89 kB / 405.4 MB, free: 6.609 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.894e-05/0.127, allocations: 95.27 kB / 405.5 MB, free: 6.516 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.127, allocations: 0 / 405.5 MB, free: 6.516 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002689/0.1272, allocations: 75.98 kB / 405.6 MB, free: 6.441 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.0001592/0.1274, allocations: 133.5 kB / 405.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005272/0.1279, allocations: 315.5 kB / 406 MB, free: 5.992 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.1279, allocations: 0 / 406 MB, free: 5.992 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006988/0.1287, allocations: 0.7227 MB / 406.8 MB, free: 5.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003062/0.129, allocations: 63.72 kB / 406.8 MB, free: 5.207 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001/0.13, allocations: 439.1 kB / 407.2 MB, free: 4.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003142/0.1303, allocations: 0.7138 MB / 408 MB, free: 4.012 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000118/0.1304, allocations: 29.98 kB / 408 MB, free: 3.984 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.1306, allocations: 47.39 kB / 408 MB, free: 3.938 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1306, allocations: 0 / 408 MB, free: 3.938 MB / 302.1 MB Notification: Performance of Templates: time 0.007246/0.1378, allocations: 3.667 MB / 411.7 MB, free: 288 kB / 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches