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: "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001511/0.001511, 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.001947/0.001947, allocations: 193.4 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.446/1.446, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06251/0.06251, allocations: 14.16 MB / 283.9 MB, free: 7.07 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.001515/0.001515, allocations: 71.84 kB / 346.6 MB, free: 17.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0829/0.08443, allocations: 50.13 MB / 396.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002435/0.08689, allocations: 1.43 MB / 398.1 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009322/0.08784, allocations: 0.5231 MB / 398.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.63e-05/0.08791, allocations: 0 / 398.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.229e-05/0.08795, allocations: 7.922 kB / 398.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.483e-05/0.08803, allocations: 15.86 kB / 398.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001896/0.08823, allocations: 79.83 kB / 398.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001608/0.08839, allocations: 183.6 kB / 398.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.615e-05/0.08845, allocations: 7.984 kB / 398.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.08858, allocations: 107.7 kB / 399.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.0887, allocations: 87.73 kB / 399.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.135e-05/0.08875, allocations: 12 kB / 399.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.381e-05/0.08879, allocations: 12 kB / 399.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.605e-05/0.08885, allocations: 55.84 kB / 399.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.08896, allocations: 79.78 kB / 399.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001453/0.08911, allocations: 127.8 kB / 399.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.08912, allocations: 4 kB / 399.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.08913, allocations: 0 / 399.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.08914, allocations: 0 / 399.4 MB, free: 12.98 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.0009197/0.09006, allocations: 0.5652 MB / 400 MB, free: 12.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.09011, allocations: 8.031 kB / 400 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.062e-05/0.09018, allocations: 50.72 kB / 400 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.866e-05/0.09028, allocations: 20.84 kB / 400.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.09041, allocations: 176.3 kB / 400.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.09044, allocations: 8.359 kB / 400.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.916e-05/0.09052, allocations: 32.34 kB / 400.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005606/0.09109, allocations: 385.2 kB / 400.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.09111, allocations: 3.984 kB / 400.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.846e-05/0.09117, allocations: 7.984 kB / 400.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.09118, allocations: 0 / 400.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.09137, allocations: 67.94 kB / 400.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003772/0.09175, allocations: 372.6 kB / 401.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002687/0.09203, allocations: 170.6 kB / 401.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002417/0.09228, allocations: 172.8 kB / 401.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.0923, allocations: 0 / 401.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000714/0.09302, allocations: 0.5142 MB / 401.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.543e-06/0.09303, allocations: 4 kB / 401.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009337/0.09397, allocations: 0.6472 MB / 402.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.013e-05/0.09402, allocations: 59.41 kB / 402.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.09413, allocations: 133.1 kB / 402.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.515e-05/0.09418, allocations: 45.69 kB / 402.8 MB, free: 9.367 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.842e-05/0.09423, allocations: 92.69 kB / 402.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.883e-05/0.09431, allocations: 71.22 kB / 403 MB, free: 9.203 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.551e-05/0.0944, allocations: 57.7 kB / 403 MB, free: 9.141 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.09451, allocations: 334.8 kB / 403.4 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.09467, allocations: 84.3 kB / 403.5 MB, free: 8.723 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.09485, allocations: 155.4 kB / 403.6 MB, free: 8.547 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003482/0.0952, allocations: 241.6 kB / 403.8 MB, free: 8.293 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.09522, allocations: 3.938 kB / 403.8 MB, free: 8.289 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003623/0.09558, allocations: 241.2 kB / 404.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.09561, allocations: 4 kB / 404.1 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.09562, allocations: 4 kB / 404.1 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.09564, allocations: 4.031 kB / 404.1 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.424e-05/0.09573, allocations: 28.05 kB / 404.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.09574, allocations: 0 / 404.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000212/0.09596, allocations: 39.95 kB / 404.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.09599, allocations: 12 kB / 404.2 MB, free: 7.957 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.000182/0.09617, allocations: 156.8 kB / 404.3 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.514e-05/0.09624, allocations: 31.8 kB / 404.4 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.883e-05/0.09631, allocations: 29.62 kB / 404.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.09632, allocations: 4 kB / 404.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.09633, allocations: 3.984 kB / 404.4 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.09634, allocations: 0 / 404.4 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002287/0.09657, allocations: 273.4 kB / 404.7 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.09658, allocations: 0 / 404.7 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.915e-05/0.09662, allocations: 11.94 kB / 404.7 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.09663, allocations: 7.984 kB / 404.7 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.911e-05/0.09667, allocations: 27.95 kB / 404.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.09668, allocations: 0 / 404.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.09668, allocations: 0 / 404.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007044/0.09739, allocations: 0.5673 MB / 405.3 MB, free: 6.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.09754, allocations: 120.8 kB / 405.4 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.839e-05/0.09763, allocations: 23.95 kB / 405.4 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/0.09786, allocations: 47.88 kB / 405.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001877/0.09806, allocations: 87.84 kB / 405.5 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.831e-05/0.09811, allocations: 39.95 kB / 405.6 MB, free: 6.449 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.199e-05/0.09818, allocations: 99.27 kB / 405.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.09819, allocations: 0 / 405.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00028/0.09847, allocations: 71.98 kB / 405.8 MB, free: 6.281 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.001038/0.09951, allocations: 1.126 MB / 406.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005175/0.1, allocations: 319.5 kB / 407.2 MB, free: 4.812 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1001, allocations: 0 / 407.2 MB, free: 4.812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006011/0.1007, allocations: 0.7307 MB / 407.9 MB, free: 4.082 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.101, allocations: 47.94 kB / 408 MB, free: 4.035 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00259/0.1036, allocations: 2.194 MB / 410.2 MB, free: 1.734 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.1039, allocations: 0.7099 MB / 410.9 MB, free: 1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.104, allocations: 33.92 kB / 410.9 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001355/0.1041, allocations: 63.39 kB / 411 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1041, allocations: 0 / 411 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02059/0.1247, allocations: 5.054 MB / 416 MB, free: 11.86 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.37/7.495, allocations: 19.03 kB / 416 MB, free: 11.85 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax.fmu > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_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_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches