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.001038/0.001039, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001051/0.001051, allocations: 189.7 kB / 16.25 MB, free: 6.617 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.37/1.37, allocations: 205.1 MB / 222.1 MB, free: 4.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05873/0.05873, allocations: 14.16 MB / 283.6 MB, free: 7.234 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.001375/0.001375, allocations: 67.91 kB / 346 MB, free: 18.25 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08769/0.08908, allocations: 50.13 MB / 396.2 MB, free: 80 kB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002473/0.0916, allocations: 1.483 MB / 397.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009432/0.09256, allocations: 0.5466 MB / 398.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.968e-05/0.09261, allocations: 4 kB / 398.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.975e-05/0.09265, allocations: 0 / 398.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.21e-05/0.09274, allocations: 15.86 kB / 398.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001831/0.09293, allocations: 63.86 kB / 398.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001697/0.09311, allocations: 179.6 kB / 398.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.356e-05/0.09317, allocations: 8 kB / 398.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.09329, allocations: 99.78 kB / 398.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.0934, allocations: 95.66 kB / 398.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.322e-05/0.09344, allocations: 12 kB / 398.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.799e-05/0.09347, allocations: 12 kB / 398.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.568e-05/0.09353, allocations: 55.84 kB / 398.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.09365, allocations: 87.8 kB / 398.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001491/0.09381, allocations: 127.8 kB / 399 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.09382, allocations: 4 kB / 399 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.09383, allocations: 3.938 kB / 399 MB, free: 13.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.464e-05/0.09385, allocations: 0 / 399 MB, free: 13.27 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.0009389/0.09479, allocations: 0.5614 MB / 399.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.09484, allocations: 8.031 kB / 399.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.57e-05/0.09492, allocations: 42.73 kB / 399.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.33e-05/0.09501, allocations: 20.83 kB / 399.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.09515, allocations: 183.9 kB / 399.8 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.09518, allocations: 16.28 kB / 399.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.273e-05/0.09525, allocations: 28.36 kB / 399.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005535/0.09581, allocations: 381.2 kB / 400.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.09582, allocations: 0 / 400.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.876e-05/0.09588, allocations: 11.97 kB / 400.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.09589, allocations: 0 / 400.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.09607, allocations: 71.88 kB / 400.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000414/0.09649, allocations: 368.6 kB / 400.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002623/0.09676, allocations: 170.5 kB / 400.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002371/0.09701, allocations: 168.8 kB / 401 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.828e-06/0.09703, allocations: 4 kB / 401 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000706/0.09774, allocations: 0.5229 MB / 401.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.854e-06/0.09775, allocations: 4 kB / 401.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009279/0.09869, allocations: 0.6457 MB / 402.1 MB, free: 9.922 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.09874, allocations: 67.39 kB / 402.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.09886, allocations: 129.8 kB / 402.3 MB, free: 9.707 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.873e-05/0.09891, allocations: 45.69 kB / 402.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.26e-05/0.09897, allocations: 92.69 kB / 402.5 MB, free: 9.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.457e-05/0.09904, allocations: 71.22 kB / 402.5 MB, free: 9.492 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.684e-05/0.09913, allocations: 57.7 kB / 402.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.09925, allocations: 338.8 kB / 402.9 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.09939, allocations: 84.3 kB / 403 MB, free: 9.008 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.09958, allocations: 147.4 kB / 403.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003194/0.09991, allocations: 253.4 kB / 403.4 MB, free: 8.574 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.09992, allocations: 4 kB / 403.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003351/0.1003, allocations: 237.2 kB / 403.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.1003, allocations: 7.938 kB / 403.6 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.1003, allocations: 4 kB / 403.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.1003, allocations: 0 / 403.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.273e-05/0.1004, allocations: 24.06 kB / 403.7 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.1004, allocations: 7.922 kB / 403.7 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001992/0.1006, allocations: 31.97 kB / 403.7 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.1007, allocations: 12 kB / 403.7 MB, free: 8.246 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.0002237/0.1009, allocations: 162.6 kB / 403.9 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.298e-05/0.1009, allocations: 27.8 kB / 403.9 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.92e-05/0.101, allocations: 33.62 kB / 403.9 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.101, allocations: 4 kB / 403.9 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.101, allocations: 0 / 403.9 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1011, allocations: 3.984 kB / 403.9 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000275/0.1013, allocations: 273.4 kB / 404.2 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1013, allocations: 0 / 404.2 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.968e-05/0.1014, allocations: 11.94 kB / 404.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.1014, allocations: 4 kB / 404.2 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.022e-05/0.1015, allocations: 27.95 kB / 404.3 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1015, allocations: 0 / 404.3 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1015, allocations: 0 / 404.3 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006986/0.1022, allocations: 0.5709 MB / 404.8 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001495/0.1023, allocations: 116.8 kB / 404.9 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.618e-05/0.1024, allocations: 23.97 kB / 405 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.1026, allocations: 43.94 kB / 405 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001878/0.1028, allocations: 87.83 kB / 405.1 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.84e-05/0.1029, allocations: 47.95 kB / 405.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.501e-05/0.103, allocations: 98.64 kB / 405.2 MB, free: 6.637 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.853e-06/0.103, allocations: 0 / 405.2 MB, free: 6.637 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002702/0.1033, allocations: 75.92 kB / 405.3 MB, free: 6.562 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.001017/0.1043, allocations: 1.135 MB / 406.4 MB, free: 5.402 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000536/0.1048, allocations: 311.6 kB / 406.7 MB, free: 5.098 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1048, allocations: 0 / 406.7 MB, free: 5.098 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006221/0.1055, allocations: 0.7264 MB / 407.5 MB, free: 4.371 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003162/0.1058, allocations: 47.89 kB / 407.5 MB, free: 4.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002649/0.1084, allocations: 2.21 MB / 409.7 MB, free: 2.004 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002963/0.1088, allocations: 0.7138 MB / 410.4 MB, free: 1.266 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001161/0.1089, allocations: 29.95 kB / 410.5 MB, free: 1.238 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.109, allocations: 63.38 kB / 410.5 MB, free: 1.176 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.109, allocations: 0 / 410.5 MB, free: 1.176 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01481/0.1239, allocations: 4.911 MB / 415.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001717/0.1241, allocations: 188.6 kB / 415.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.799/1.923, allocations: 0.875 kB / 415.6 MB, free: 12.09 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