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.001279/0.001279, allocations: 108.6 kB / 15.73 MB, free: 76 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.00134/0.00134, allocations: 191 kB / 16.66 MB, free: 6.59 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.396/1.396, allocations: 205.1 MB / 222.5 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06756/0.06756, allocations: 14.16 MB / 284.1 MB, free: 7.02 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.002139/0.002139, allocations: 72.22 kB / 397.5 MB, free: 15.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2219, allocations: 50.14 MB / 447.6 MB, free: 2.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001875/0.2238, allocations: 1.435 MB / 449 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007249/0.2246, allocations: 0.5232 MB / 449.6 MB, free: 0.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.714e-05/0.2246, allocations: 0 / 449.6 MB, free: 0.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.489e-05/0.2246, allocations: 3.938 kB / 449.6 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.199e-05/0.2247, allocations: 21.25 kB / 449.6 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001533/0.2249, allocations: 86.02 kB / 449.7 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001402/0.225, allocations: 182.6 kB / 449.9 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.448e-05/0.2251, allocations: 11.36 kB / 449.9 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.841e-05/0.2252, allocations: 99.06 kB / 450 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.295e-05/0.2253, allocations: 88.77 kB / 450 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.789e-05/0.2253, allocations: 11.66 kB / 450.1 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.419e-05/0.2254, allocations: 12.53 kB / 450.1 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.472e-05/0.2254, allocations: 60.08 kB / 450.1 MB, free: 496 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.166e-05/0.2255, allocations: 73.77 kB / 450.2 MB, free: 448 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.2256, allocations: 125.5 kB / 450.3 MB, free: 360 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2256, allocations: 5.375 kB / 450.3 MB, free: 356 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2256, allocations: 3.984 kB / 450.3 MB, free: 352 kB / 318.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.2256, allocations: 0 / 450.3 MB, free: 352 kB / 318.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.0008553/0.2265, allocations: 0.5541 MB / 450.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.017e-05/0.2265, allocations: 9.625 kB / 450.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.27e-05/0.2266, allocations: 48.22 kB / 450.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.879e-05/0.2267, allocations: 24 kB / 451 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.2269, allocations: 177.8 kB / 451.1 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.2269, allocations: 13.86 kB / 451.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.841e-05/0.227, allocations: 31.53 kB / 451.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005583/0.2275, allocations: 376.3 kB / 451.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.2275, allocations: 0 / 451.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.328e-05/0.2276, allocations: 13.48 kB / 451.6 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.2276, allocations: 1.375 kB / 451.6 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001829/0.2278, allocations: 70.25 kB / 451.6 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003956/0.2282, allocations: 376.8 kB / 452 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002674/0.2285, allocations: 175.3 kB / 452.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002299/0.2287, allocations: 157.8 kB / 452.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.099e-05/0.2287, allocations: 5.312 kB / 452.3 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007776/0.2295, allocations: 0.5322 MB / 452.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.512e-06/0.2295, allocations: 0 / 452.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009792/0.2305, allocations: 0.6548 MB / 453.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/0.2306, allocations: 55.88 kB / 453.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.2307, allocations: 127.8 kB / 453.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.028e-05/0.2307, allocations: 45.34 kB / 453.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.957e-05/0.2308, allocations: 91.02 kB / 453.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.08e-05/0.2309, allocations: 85.95 kB / 453.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.323e-05/0.231, allocations: 55.08 kB / 454 MB, free: 13.56 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.2311, allocations: 330.4 kB / 454.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.2313, allocations: 84.42 kB / 454.4 MB, free: 13.19 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/0.2315, allocations: 158.9 kB / 454.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003419/0.2318, allocations: 234.1 kB / 454.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2318, allocations: 0 / 454.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003549/0.2322, allocations: 238.3 kB / 455 MB, free: 12.8 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.2322, allocations: 10.06 kB / 455 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2322, allocations: 1.469 kB / 455 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.2323, allocations: 2.094 kB / 455 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.122e-05/0.2323, allocations: 21.42 kB / 455 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.2324, allocations: 2.594 kB / 455 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000218/0.2326, allocations: 47.66 kB / 455.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.066e-05/0.2326, allocations: 8.844 kB / 455.1 MB, free: 12.75 MB / 334.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.0001822/0.2328, allocations: 160.3 kB / 455.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.853e-05/0.2328, allocations: 26.19 kB / 455.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.141e-05/0.2329, allocations: 34.83 kB / 455.3 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.2329, allocations: 4.219 kB / 455.3 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.233, allocations: 0 / 455.3 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.233, allocations: 0 / 455.3 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002712/0.2332, allocations: 274.9 kB / 455.6 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2333, allocations: 4 kB / 455.6 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.164e-05/0.2333, allocations: 10.92 kB / 455.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.2333, allocations: 2.25 kB / 455.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.427e-05/0.2333, allocations: 27.86 kB / 455.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.2334, allocations: 1.156 kB / 455.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/0.2334, allocations: 7.922 kB / 455.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007386/0.2341, allocations: 0.5618 MB / 456.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001475/0.2343, allocations: 121.6 kB / 456.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.581e-05/0.2343, allocations: 31.06 kB / 456.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.2346, allocations: 45.38 kB / 456.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.2348, allocations: 84.56 kB / 456.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.766e-05/0.2348, allocations: 40.08 kB / 456.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.562e-05/0.2349, allocations: 94.17 kB / 456.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2349, allocations: 0 / 456.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002682/0.2352, allocations: 78.89 kB / 456.7 MB, free: 11.58 MB / 334.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.001108/0.2363, allocations: 1.142 MB / 457.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004884/0.2368, allocations: 283.5 kB / 458.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2368, allocations: 1.469 kB / 458.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000693/0.2375, allocations: 0.734 MB / 458.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/0.2378, allocations: 48.39 kB / 458.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00273/0.2405, allocations: 2.182 MB / 461.1 MB, free: 8.297 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/0.2409, allocations: 0.7227 MB / 461.8 MB, free: 7.578 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001168/0.241, allocations: 31.61 kB / 461.8 MB, free: 7.562 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.2412, allocations: 59.95 kB / 461.9 MB, free: 7.52 MB / 334.1 MB Notification: Performance of SimCode: time 2.214e-06/0.2412, allocations: 1.062 kB / 461.9 MB, free: 7.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02655/0.2678, allocations: 5.112 MB / 467 MB, free: 3.023 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.831/8.099, allocations: 11.84 kB / 467 MB, free: 3.016 MB / 334.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