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.001004/0.001004, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005229/0.005229, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.267/1.267, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0583/0.0583, allocations: 14.16 MB / 284.9 MB, free: 7.043 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.0004592/0.0004592, allocations: 15.94 kB / 348.2 MB, free: 18.08 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07716/0.07763, allocations: 51.12 MB / 399.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001209/0.07886, allocations: 1.152 MB / 400.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007471/0.07962, allocations: 0.531 MB / 401 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.031e-05/0.07967, allocations: 4 kB / 401 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.519e-05/0.07969, allocations: 3.984 kB / 401 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.051e-05/0.07977, allocations: 15.86 kB / 401.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001505/0.07992, allocations: 59.88 kB / 401.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001544/0.08008, allocations: 187.6 kB / 401.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.96e-05/0.08013, allocations: 7.938 kB / 401.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.736e-05/0.08024, allocations: 95.84 kB / 401.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.08035, allocations: 95.66 kB / 401.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.241e-05/0.08039, allocations: 12 kB / 401.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.614e-05/0.08042, allocations: 12 kB / 401.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.214e-05/0.08047, allocations: 55.84 kB / 401.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.08059, allocations: 105.5 kB / 401.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001307/0.08072, allocations: 139.8 kB / 401.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.08073, allocations: 0 / 401.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.08074, allocations: 0 / 401.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.08075, allocations: 0 / 401.8 MB, free: 12.44 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.00075/0.0815, allocations: 495.1 kB / 402.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.08155, allocations: 12.03 kB / 402.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.208e-05/0.08162, allocations: 46.72 kB / 402.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.331e-05/0.08169, allocations: 20.84 kB / 402.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001037/0.0818, allocations: 180.2 kB / 402.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.08183, allocations: 12.36 kB / 402.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.493e-05/0.0819, allocations: 32.33 kB / 402.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005065/0.08241, allocations: 381.2 kB / 403 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-06/0.08242, allocations: 0 / 403 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.573e-05/0.08248, allocations: 11.98 kB / 403 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.08249, allocations: 4 kB / 403 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001583/0.08265, allocations: 67.88 kB / 403 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003388/0.08299, allocations: 368.6 kB / 403.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002282/0.08323, allocations: 178.5 kB / 403.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002108/0.08345, allocations: 156.8 kB / 403.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.348e-06/0.08347, allocations: 288 / 403.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006569/0.08413, allocations: 0.5228 MB / 404.3 MB, free: 9.816 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.313e-06/0.08414, allocations: 0 / 404.3 MB, free: 9.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.000849/0.08499, allocations: 0.6534 MB / 404.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.994e-05/0.08504, allocations: 59.41 kB / 405 MB, free: 9.086 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.194e-05/0.08513, allocations: 133.7 kB / 405.1 MB, free: 8.949 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.537e-05/0.08518, allocations: 45.69 kB / 405.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.078e-05/0.08523, allocations: 92.7 kB / 405.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.119e-05/0.0853, allocations: 87.11 kB / 405.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.059e-05/0.08534, allocations: 29.7 kB / 405.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.438e-05/0.08545, allocations: 330.8 kB / 405.7 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.08559, allocations: 84.3 kB / 405.7 MB, free: 8.266 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.08577, allocations: 155.4 kB / 405.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003086/0.08609, allocations: 245.6 kB / 406.1 MB, free: 7.832 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.0861, allocations: 3.938 kB / 406.1 MB, free: 7.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003247/0.08643, allocations: 237.4 kB / 406.4 MB, free: 7.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.08645, allocations: 12 kB / 406.4 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.08646, allocations: 0 / 406.4 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.08647, allocations: 4 kB / 406.4 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.685e-05/0.08656, allocations: 19.92 kB / 406.4 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.08657, allocations: 7.938 kB / 406.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002137/0.08679, allocations: 43.95 kB / 406.5 MB, free: 7.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.08681, allocations: 12 kB / 406.5 MB, free: 7.492 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.0001492/0.08697, allocations: 154.6 kB / 406.6 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.399e-05/0.08702, allocations: 31.8 kB / 406.7 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.792e-05/0.08711, allocations: 29.62 kB / 406.7 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.08711, allocations: 4 kB / 406.7 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.08712, allocations: 3.984 kB / 406.7 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.08713, allocations: 4 kB / 406.7 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002067/0.08734, allocations: 273.4 kB / 407 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.08735, allocations: 4 kB / 407 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.88e-05/0.08739, allocations: 15.94 kB / 407 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.08739, allocations: 3.984 kB / 407 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.414e-05/0.08743, allocations: 23.95 kB / 407 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.08744, allocations: 0 / 407 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.08744, allocations: 0 / 407 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006446/0.08809, allocations: 0.567 MB / 407.6 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.08822, allocations: 116.8 kB / 407.7 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.966e-05/0.08829, allocations: 27.95 kB / 407.7 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.08852, allocations: 47.94 kB / 407.8 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/0.08869, allocations: 83.83 kB / 407.8 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.562e-05/0.08875, allocations: 43.95 kB / 407.9 MB, free: 5.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.037e-05/0.0888, allocations: 95.27 kB / 408 MB, free: 5.887 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08881, allocations: 4 kB / 408 MB, free: 5.883 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002548/0.08907, allocations: 71.98 kB / 408.1 MB, free: 5.812 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.0009135/0.08999, allocations: 1.135 MB / 409.2 MB, free: 4.652 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004245/0.09042, allocations: 303.6 kB / 409.5 MB, free: 4.355 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.09043, allocations: 4.25 kB / 409.5 MB, free: 4.352 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005631/0.091, allocations: 0.7263 MB / 410.2 MB, free: 3.625 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.09128, allocations: 54.11 kB / 410.3 MB, free: 3.574 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/0.09358, allocations: 2.22 MB / 412.5 MB, free: 1.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.09385, allocations: 0.7099 MB / 413.2 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.478e-05/0.09395, allocations: 33.97 kB / 413.2 MB, free: 492 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.09409, allocations: 59.39 kB / 413.3 MB, free: 432 kB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.09409, allocations: 3.938 kB / 413.3 MB, free: 428 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01392/0.108, allocations: 4.506 MB / 417.8 MB, free: 11.99 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/0.1082, allocations: 187.8 kB / 418 MB, free: 11.74 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/1.732, allocations: 0 / 418 MB, free: 11.74 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","../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches